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

From Alvaro Herrera
Subject Re: NLS on MSVC strikes back!
Date
Msg-id 20080212164458.GN14683@alvh.no-ip.org
Whole thread Raw
In response to Re: NLS on MSVC strikes back!  ("Gevik Babakhani" <pgdev@xs4all.nl>)
Responses Re: NLS on MSVC strikes back!
Re: NLS on MSVC strikes back!
Re: NLS on MSVC strikes back!
List pgsql-hackers
Gevik Babakhani wrote:

> 4. Locale names are different in MS Windows. I created a C app to test
> gettext on Windows. 
> setting LC_MESSAGES to Spanisg_Spain and German_Germany works but es_ES and
> de_DE do not :(
> 
> SET LC_MESSAGES to '....' has no effect because:
> 
> A. gettext compiled/linked in MSVC looks for the locale of the current
> thread and NOT the LC_MESSAGES,LANGIAGE,LANG... environment variables. See
> gettext's sources....
> 
> B. Given current thread's locale Spanish_Spain, gettext fails to find a
> directory called "Spanish_Spain" in share/locale. As result English names
> are returned.

What this really means is that locale support is completely broken in
the MSVC build, i.e. you cannot get localized strings at all (not just
to_char()).  Is this correct?  If so, this is a serious problem.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: "Gevik Babakhani"
Date:
Subject: Re: NLS on MSVC strikes back!
Next
From: "Dave Page"
Date:
Subject: Re: NLS on MSVC strikes back!