Re: NLS on MSVC strikes back! - Mailing list pgsql-hackers

From Hiroshi Saito
Subject Re: NLS on MSVC strikes back!
Date
Msg-id 017301c86d87$a7f78c10$0301a8c0@HP22720319231
Whole thread Raw
In response to NLS on MSVC strikes back!  ("Gevik Babakhani" <pgdev@xs4all.nl>)
Responses Re: NLS on MSVC strikes back!  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Hi

--Document.--
Table 9-22.
TM prefix translation mode (print localized day and month names based on lc_messages)
--
http://winpg.jp/~saito/pg_work/NLS_TO_CHAR_JP.png
But, Although Japanese is out of condition....

Does the fundamental specification change?

Regards,
Hiroshi Saito

----- Original Message ----- 
From: "Alvaro Herrera" <alvherre@commandprompt.com>


> Gevik Babakhani wrote:
>> I have compiled 8.3 (CVS HEAD) with NLS on a XP box. But it seems that NLS
>> support is broke.
>> Could someone please confirm this.
>
> What I can confirm is that lc_messages is supposed to work for to_char,
> because it shows the localized output for me as I change lc_messages;
> and it doesn't if I change lc_time.
>
> In any case,
>
>> Gevik=# show lc_messages ;
>>         lc_messages
>> ----------------------------
>>  English_United States.1252
>> (1 row)
>>
>> Gevik=#
>> Gevik=# set lc_messages TO 'de_DE.utf8';
>> SET
>
> I wonder if this is really valid.  Shouldn't you be using a locale name
> like 'German_Germany.65001' or some such?  I thought Windows did not
> recognize the de_DE.utf8 form of names.  Perhaps it failed to raise an
> error here?  It does for me:
>
> alvherre=# set lc_time to 'fr_CA.utf8';
> SET
> alvherre=# set lc_time to 'de_DE.utf8';
> ERROR:  valor no válido para el parámetro «lc_time»: «de_DE.utf8»
>
> Suffice to say I don't have the de_DE locale installed.
>
> -- 
> Alvaro Herrera                                http://www.CommandPrompt.com/
> PostgreSQL Replication, Consulting, Custom Development, 24x7 support
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly 



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: postmaster in a tight loop
Next
From: Bruce Momjian
Date:
Subject: Re: NLS on MSVC strikes back!