pgsql: pg_locale_libc.c: add guards to ctype methods. - Mailing list pgsql-committers

From Jeff Davis
Subject pgsql: pg_locale_libc.c: add guards to ctype methods.
Date
Msg-id E1whH0I-0004x1-1w@gemulon.postgresql.org
Whole thread
List pgsql-committers
pg_locale_libc.c: add guards to ctype methods.

Necessary for 16-bit wchar_t platforms (Windows).

Other guards are just defensive. Also correct style issue with
branches.

Reported-by: Noah Misch <noah@leadboat.com>
Discussion: https://postgr.es/m/20260630012919.78@rfd.leadboat.com
Backpatch-through: 19

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/404fe01e0c5d402c257cfe809e5a15f64a2c6586

Modified Files
--------------
src/backend/utils/adt/pg_locale_libc.c | 52 +++++++++++++++++++++++++++++++---
1 file changed, 48 insertions(+), 4 deletions(-)


pgsql-committers by date:

Previous
From: Jeff Davis
Date:
Subject: pgsql: pg_locale_libc.c: add missing casts to unsigned char.
Next
From: Richard Guo
Date:
Subject: pgsql: Tighten nullingrels checks for outer joins