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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user