Re: locales and encodings on Windows

Поиск
Список
Период
Сортировка
От Aleksander Kmetec
Тема Re: locales and encodings on Windows
Дата
Msg-id 4193C607.1040102@intera.si
обсуждение исходный текст
Ответ на Re: locales and encodings on Windows  ("Magnus Hagander" <mha@sollentuna.net>)
Ответы Re: locales and encodings on Windows  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-hackers-win32
Magnus Hagander wrote:
> Do you know enough to say exactly which locale/encoding
> combinations have to be removed fromt he installer?

The encodings are:
UTF8
EUC_CN
EUC_TW
LATIN6 (ISO 8859-10/ECMA 144)
LATIN7 (ISO 8859-13)
LATIN8 (ISO 8859-14)
LATIN10 (ISO 8859-16/ASRO SR 14111

While you can still create databases using these encodings, it's not
possible to initb with a locale that uses the same encoding. This means
ORDER BY, UPPER() and similar will produce wrong results.

I guess I'll resubmit my installer patch for listing locales supported
by the system, this time without the encodings listed above. That way
most users won't see unsupported encodings, while people who know what
they're doing can still reach them by using CREATE DATABASE newdb
ENCODING 'encoding'.

>>Last October there was a discussion on pgsql-hackers about
>>writing locale support for PG, so it wouldn't depend on the
>>system for locale functionality any more. Is anyone still
>>working on that?
>
> I have no idea, but I'm certain if someone is this is definitly not
> going to happen for 8.0.

I know this feature can't make it into 8.0; but blaming Windows for more
than one release cycle might not look very good. :-(

Regards,
Aleksander

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: locales and encodings on Windows
Следующее
От: Rob McCarthy
Дата:
Сообщение: Initdb Fail installing PostgreSQL 8.0.0 Beta 4