10000 copyfromparse.c: use pg_ascii_tolower() rather than tolower(). · petergeoghegan/postgres@4c787a2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c787a2

Browse files
committed
copyfromparse.c: use pg_ascii_tolower() rather than tolower().
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 3feff39 commit 4c787a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/commands/copyfromparse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ GetDecimalFromHex(char hex)
15381538
if (isdigit((unsigned char) hex))
15391539
return hex - '0';
15401540
else
1541-
return tolower((unsigned char) hex) - 'a' + 10;
1541+
return pg_ascii_tolower((unsigned char) hex) - 'a' + 10;
15421542
}
15431543

15441544
/*

0 commit comments

Comments
 (0)
0