1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-25 20:23:07 +03:00

Fix unintentional behavior change in commit e9931bfb75.

Prior to that commit, there was special case to use ASCII case mapping
behavior for the libc provider with a single-byte encoding when that's
the default collation. Commit e9931bfb75 mistakenly eliminated that
special case; this commit restores it.

Discussion: https://postgr.es/m/01a104f0d2179d756261e90d96fd65c36ad6fcf0.camel@j-davis.com
This commit is contained in:
Jeff Davis
2024-12-02 21:59:02 -08:00
parent 4171c44c9b
commit e3fa2b037c
4 changed files with 30 additions and 5 deletions

View File

@@ -95,6 +95,8 @@ SB_lower_char(unsigned char c, pg_locale_t locale)
{
if (locale->ctype_is_c)
return pg_ascii_tolower(c);
else if (locale->is_default)
return pg_tolower(c);
else
return tolower_l(c, locale->info.lt);
}