Re: Case Conversion Functions
| От | Tom Lane |
|---|---|
| Тема | Re: Case Conversion Functions |
| Дата | |
| Msg-id | 15691.1135641667@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Case Conversion Functions (Volkan YAZICI <yazicivo@ttnet.net.tr>) |
| Список | pgsql-hackers |
Volkan YAZICI <yazicivo@ttnet.net.tr> writes:
> There're lots of places in the code which uses either pg_tolower()
> or just tolower() - without aware of MB characters; or some
> on-their-own implementations of pg_tolower(). (Actually, AFAIK,
> whole MB case conversion is broken in -rHEAD.)
The upper/lower functions themselves work AFAIK, but I agree that stuff
like ILIKE probably is broken for MB encodings. regex character classes
need help too.
> Another example:
> backend/parser/scansup.c
> 152 else if (ch >= 0x80 && isupper(ch))
> 153 ch = tolower(ch);
Fooling with that is fairly risky --- we've been burnt before by
locale-dependent case folding of SQL identifiers. In particular
it'd be really bad if the folding could change on-the-fly at runtime.
regards, tom lane
В списке pgsql-hackers по дате отправления: