]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_locale_libc.c: add guards to ctype methods.
authorJeff Davis <jdavis@postgresql.org>
Wed, 8 Jul 2026 01:20:06 +0000 (18:20 -0700)
committerJeff Davis <jdavis@postgresql.org>
Wed, 8 Jul 2026 01:20:06 +0000 (18:20 -0700)
commitdbbeafe61ad049c8881aa82575ecf3e89d707ce3
treef5aad901210da1c6167fc4b59f2cb62d90a830dc
parent3ab2abc9494dde30dbdfe9eeb7c96a63128941ae
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
src/backend/utils/adt/pg_locale_libc.c