diff options
author | Jeff Davis | 2025-06-10 18:22:57 +0000 |
---|---|---|
committer | Jeff Davis | 2025-06-10 18:22:57 +0000 |
commit | 4c787a24e7e220a60022e47c1776f22f72902899 (patch) | |
tree | 31c5359ce895cbc1cf5157bb0f11ad1ce5c133a1 | |
parent | 3feff3916ee106c084eca848527dc2d2c3ef4e89 (diff) |
copyfromparse.c: use pg_ascii_tolower() rather than tolower().
Avoid dependence on setlocale(). No behavior change.
Discussion: https://postgr.es/m/[email protected]
Reviewed-by: Peter Eisentraut <[email protected]>
-rw-r--r-- | src/backend/commands/copyfromparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/copyfromparse.c b/src/backend/commands/copyfromparse.c index f5fc346e201..f52f2477df1 100644 --- a/src/backend/commands/copyfromparse.c +++ b/src/backend/commands/copyfromparse.c @@ -1538,7 +1538,7 @@ GetDecimalFromHex(char hex) if (isdigit((unsigned char) hex)) return hex - '0'; else - return tolower((unsigned char) hex) - 'a' + 10; + return pg_ascii_tolower((unsigned char) hex) - 'a' + 10; } /* |