Avoid dependence on setlocale(). No behavior change.
Discussion: https://postgr.es/m/
9875f7f9-50f1-4b5d-86fc-
ee8b03e8c162@eisentraut.org
Reviewed-by: Peter Eisentraut
if (type != INVALID)
goto eaninvalid;
type = ISSN;
- *aux1++ = toupper((unsigned char) *aux2);
+ *aux1++ = pg_ascii_toupper((unsigned char) *aux2);
length++;
}
else if (length == 9 && (digit || *aux2 == 'X' || *aux2 == 'x') && last)
goto eaninvalid;
if (type == INVALID)
type = ISBN; /* ISMN must start with 'M' */
- *aux1++ = toupper((unsigned char) *aux2);
+ *aux1++ = pg_ascii_toupper((unsigned char) *aux2);
length++;
}
else if (length == 11 && digit && last)