]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix t_isspace(), etc., when datlocprovider=i and datctype=C.
authorJeff Davis <jdavis@postgresql.org>
Fri, 17 Mar 2023 18:47:35 +0000 (11:47 -0700)
committerJeff Davis <jdavis@postgresql.org>
Fri, 17 Mar 2023 19:07:47 +0000 (12:07 -0700)
commit8b87e92919cd0e8e8ffbae543d996063149c3ccc
tree4997aa451e36a850e9ba68270ec439af2388953a
parent2b216da1e55dc125ada193328e87e471d49b0938
Fix t_isspace(), etc., when datlocprovider=i and datctype=C.

Check whether the datctype is C to determine whether t_isspace() and
related functions use isspace() or iswspace().

Previously, t_isspace() checked whether the database default collation
was C; which is incorrect when the default collation uses the ICU
provider.

Discussion: https://postgr.es/m/79e4354d9eccfdb00483146a6b9f6295202e7890.camel@j-davis.com
Reviewed-by: Peter Eisentraut
Backpatch-through: 15
src/backend/tsearch/ts_locale.c
src/backend/tsearch/wparser_def.c
src/backend/utils/adt/pg_locale.c
src/backend/utils/init/postinit.c
src/include/utils/pg_locale.h