mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
Use pg_ascii_tolower()/pg_ascii_toupper() where appropriate.
Avoids unnecessary dependence on setlocale(). No behavior change.
This commit reverts e1458f2f1b, which reverted some changes
unintentionally committed before the branch for 19.
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/a8666c391dfcabe79868d95f7160eac533ace718.camel@j-davis.com
Discussion: https://postgr.es/m/7efaaa645aa5df3771bb47b9c35df27e08f3520e.camel@j-davis.com
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user