Avoid global LC_CTYPE dependency in pg_locale_libc.c.

Jeff Davis <jdavis@postgresql.org>

Commit: f81bf78ce12b9fd3e50eb00dd875440007262ec4
Author: Jeff Davis <jdavis@postgresql.org>
Date: 2025-11-24T22:55:09Z
Avoid global LC_CTYPE dependency in pg_locale_libc.c.

Call tolower_l() directly instead of through pg_tolower(), because the
latter depends on the global LC_CTYPE.

Discussion: https://postgr.es/m/8186b28a1a39e61a0d833a4c25a8909ebbbabd48.camel@j-davis.com

Files

PathChange+/−
src/backend/utils/adt/pg_locale_libc.c modified +24 −4

Discussion