Re: Re: [COMMITTERS] pgsql: setlocale() on Windows doesn't work correctly if the locale name

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема Re: Re: [COMMITTERS] pgsql: setlocale() on Windows doesn't work correctly if the locale name
Дата
Msg-id 4DAF529E.7000107@tpf.co.jp
обсуждение исходный текст
Ответ на Re: Re: [COMMITTERS] pgsql: setlocale() on Windows doesn't work correctly if the locale name  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
(2011/04/20 22:08), Tom Lane wrote:
> Hiroshi Inoue<inoue@tpf.co.jp>  writes:
>> In my environment (Windows Vista using VC8)
> 
>>    setlocale(LC_XXXX, "Chinese (Traditional)_MCO.950");
>> works and
>>    setlocale(LC_XXXX, NULL);
>> returns
>>    Chinese (Traditional)_Macao S.A.R..950
>> but
>>    setlocale(LC_XXXX, "Chinese (Traditional)_Macao S.A.R..950");
>> fails.
> 
> Interesting.  This example suggests that maybe Windows' setlocale can
> only cope with dot as introducing a codepage number.

ACP or OCP as well as codepage number seem to be allowed.

> Are there any
> cases where a dot works as part of the basic locale name?

Unfortunately I don't know any explanation how dots are allowed.

regards,
Hiroshi Inoue




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgindent weirdness
Следующее
От: Hiroshi Inoue
Дата:
Сообщение: Re: Re: [COMMITTERS] pgsql: setlocale() on Windows doesn't work correctly if the locale name