8000 isn.c: use pg_ascii_toupper() instead of toupper(). · theory/postgres@7a6880f · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a6880f

Browse files
committed
isn.c: use pg_ascii_toupper() instead of toupper().
Avoid dependence on setlocale(). No behavior change. Discussion: https://postgr.es/m/9875f7f9-50f1-4b5d-86fc-ee8b03e8c162@eisentraut.org Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
1 parent 78bd364 commit 7a6880f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/isn/isn.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ string2ean(const char *str, struct Node *escontext, ean13 *result,
726726
if (type != INVALID)
727727
goto eaninvalid;
728728
type = ISSN;
729-
*aux1++ = toupper((unsigned char) *aux2);
729+
*aux1++ = pg_ascii_toupper((unsigned char) *aux2);
730730
length++;
731731
}
732732
else if (length == 9 && (digit || *aux2 == 'X' || *aux2 == 'x') && last)
@@ -736,7 +736,7 @@ string2ean(const char *str, struct Node *escontext, ean13 *result,
736736
goto eaninvalid;
737737
if (type == INVALID)
738738
type = ISBN; /* ISMN must start with 'M' */
739-
*aux1++ = toupper((unsigned char) *aux2);
739+
*aux1++ = pg_ascii_toupper((unsigned char) *aux2);
740740
length++;
741741
}
742742
else if (length == 11 && digit && last)

0 commit comments

Comments
 (0)
0