Re: Unicode upper() bug still present

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Unicode upper() bug still present
Дата
Msg-id 1794.1066655148@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Unicode upper() bug still present  (Hannu Krosing <hannu@tm.ee>)
Список pgsql-hackers
Hannu Krosing <hannu@tm.ee> writes:
>> It's been suggested that we could use <wctype.h> where available.
>> However there are a bunch of issues that would have to be solved to make
>> that happen.  (How do we convert between the database character encoding 
>> and the wctype representation?  

> How do we do it for sorting ?

We don't --- strcoll() handles it all internally.

> It seems inconsistent that we do use locale-aware sorts but not
> upper/lower.

We do have locale-aware upper/lower ... but only in single-byte
encodings.  I think it works for the 7-bit-ASCII subset of multibyte
encodings, too.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: Unicode upper() bug still present
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Unicode upper() bug still present