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

Jeff Davis <jdavis@postgresql.org>

Commit: 8b87e92919cd0e8e8ffbae543d996063149c3ccc
Author: Jeff Davis <jdavis@postgresql.org>
Date: 2023-03-17T19:07:47Z
Releases: 15.3
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

Files

Discussion