mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
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>
This commit is contained in:
@ -1538,7 +1538,7 @@ GetDecimalFromHex(char hex)
|
|||||||
if (isdigit((unsigned char) hex))
|
if (isdigit((unsigned char) hex))
|
||||||
return hex - '0';
|
return hex - '0';
|
||||||
else
|
else
|
||||||
return tolower((unsigned char) hex) - 'a' + 10;
|
return pg_ascii_tolower((unsigned char) hex) - 'a' + 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user