aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2023-03-17 11:47:35 -0700
committerJeff Davis <jdavis@postgresql.org>2023-03-17 12:07:47 -0700
commit8b87e92919cd0e8e8ffbae543d996063149c3ccc (patch)
tree4997aa451e36a850e9ba68270ec439af2388953a /src/include
parent2b216da1e55dc125ada193328e87e471d49b0938 (diff)
downloadpostgresql-8b87e92919cd0e8e8ffbae543d996063149c3ccc.tar.gz
postgresql-8b87e92919cd0e8e8ffbae543d996063149c3ccc.zip
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
Diffstat (limited to 'src/include')
-rw-r--r--src/include/utils/pg_locale.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/utils/pg_locale.h b/src/include/utils/pg_locale.h
index e7385faef86..de7c5e30d2d 100644
--- a/src/include/utils/pg_locale.h
+++ b/src/include/utils/pg_locale.h
@@ -49,6 +49,8 @@ extern PGDLLIMPORT char *localized_full_days[];
extern PGDLLIMPORT char *localized_abbrev_months[];
extern PGDLLIMPORT char *localized_full_months[];
+/* is the databases's LC_CTYPE the C locale? */
+extern PGDLLIMPORT bool database_ctype_is_c;
extern bool check_locale_messages(char **newval, void **extra, GucSource source);
extern void assign_locale_messages(const char *newval, void *extra);