Re: UNICODE/UTF-8 on win32

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: UNICODE/UTF-8 on win32
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE4764A7@algol.sollentuna.se
обсуждение исходный текст
Ответ на UNICODE/UTF-8 on win32  ("Magnus Hagander" <mha@sollentuna.net>)
Ответы Re: UNICODE/UTF-8 on win32  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers-win32
>TODO updated:
>
>        o Disallow encodings like UTF8 which PostgreSQL supports
>          but the operating system does not (already disallowed by
>          pginstaller)
>
>          To fix UTF8, the data needs to be converted to UTF16 and then
>          the Win32 strcoll() can be used.

Not quite. We'd use the wcscoll() function. strcoll() does not work with
what windows calls "wide characters", which is UTF16, only with
"multibyte characters". The whole point of the fix is to be able to use
wcscoll() instead.

Also, not AFAIK, not only strcoll(), but also whatever is used to
generate UPPER() and LOWER() needs to be fixed. Possibly more?

//Magnus

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: UNICODE/UTF-8 on win32
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: UNICODE/UTF-8 on win32