pgsql: Fix t_isspace(), etc., when datlocprovider=i and datctype=C.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix t_isspace(), etc., when datlocprovider=i and datctype=C.
Date: 2023-03-17 19:15:08
Message-ID: E1pdFXg-0041uv-Eo@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8b87e92919cd0e8e8ffbae543d996063149c3ccc

Modified Files
--------------
src/backend/tsearch/ts_locale.c | 15 +++++----------
src/backend/tsearch/wparser_def.c | 3 +--
src/backend/utils/adt/pg_locale.c | 3 +++
src/backend/utils/init/postinit.c | 4 ++++
src/include/utils/pg_locale.h | 2 ++
5 files changed, 15 insertions(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2023-03-17 20:41:50 pgsql: Fix typo
Previous Message Jeff Davis 2023-03-17 19:11:36 pgsql: Fix t_isspace(), etc., when datlocprovider=i and datctype=C.