Skip site navigation (1) Skip section navigation (2)

Re: BUG #4186: set lc_messages does not work

From: Euler Taveira de Oliveira <euler(at)timbira(dot)com>
To: "Thomas H(dot)" <me(at)alternize(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4186: set lc_messages does not work
Date: 2008-05-23 04:57:33
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugspgsql-hackers
Thomas H. wrote:

> please observe the (previously already submitted) test queries. i've 
> removed the date/time testqueries to no further distract from the 
> problem. the bogus query "select x;" always results in a german error 
> messages no matter what LC_MESSAGES is set:
OK, that's another problem. AFAIK, that's a known problem because 
Windows doesn't have LC_MESSAGES. The above comment (pg_locale.c) 
suggests that there is no verification for the locale that is been set. 
A possible solution is to use IsValidLocaleName() [1] or 
LocaleNameToLCID() [2] but it seems that they're only available for 
Vista. :( Maybe we could emulate one of these functions with a mapping 
table [3]. [searching ...] It seems there are problems with LCIDs; they 
don't describe the locales acurately. pgwin hackers?
Could you try to use one of the locale names described in [4]?

  * LC_MESSAGES category does not exist everywhere, but accept it anyway
  * On Windows, we can't even check the value, so the non-doit case is a
  * no-op


   Euler Taveira de Oliveira

In response to


pgsql-hackers by date

Next:From: Sushant SinhaDate: 2008-05-23 05:10:27
Subject: Re: Fragments in tsearch2 headline
Previous:From: Tom LaneDate: 2008-05-23 04:17:08
Subject: Re: idea: storing view source in system catalogs

pgsql-bugs by date

Next:From: Martin SullivanDate: 2008-05-23 08:30:37
Subject: BUG #4187: function to_tsvector not immutable
Previous:From: Thomas H.Date: 2008-05-23 02:31:27
Subject: Re: BUG #4186: set lc_messages does not work

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group