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

From Tom Lane
Subject Re: Re: [COMMITTERS] pgsql: setlocale() on Windows doesn't work correctly if the locale name
Date
Msg-id 24758.1303304939@sss.pgh.pa.us
Whole thread Raw
In response to Re: Re: [COMMITTERS] pgsql: setlocale() on Windows doesn't work correctly if the locale name  (Hiroshi Inoue <inoue@tpf.co.jp>)
Responses Re: Re: [COMMITTERS] pgsql: setlocale() on Windows doesn't work correctly if the locale name  (Hiroshi Inoue <inoue@tpf.co.jp>)
List pgsql-hackers
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.  Are there any
cases where a dot works as part of the basic locale name?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Jerry Sievers
Date:
Subject: Re: time-delayed standbys
Next
From: Hiroshi Inoue
Date:
Subject: Re: Re: [COMMITTERS] pgsql: setlocale() on Windows doesn't work correctly if the locale name