Re: BUG #4186: set lc_messages does not work

Поиск
Список
Период
Сортировка
Искать
От
Thomas H.
Тема
Re: BUG #4186: set lc_messages does not work
Дата
в 23:31:47
Msg-id
48362C7F.3050605@alternize.com
Ответ на
Список
Дерево обсуждения
BUG #4186: set lc_messages does not work "Thomas H" <me@alternize.com>
Re: BUG #4186: set lc_messages does not work Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #4186: set lc_messages does not work "Thomas H." <me@alternize.com>
Re: BUG #4186: set lc_messages does not work Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #4186: set lc_messages does not work "Thomas H." <me@alternize.com>
Re: BUG #4186: set lc_messages does not work "Thomas H." <me@alternize.com>
Re: BUG #4186: set lc_messages does not work Magnus Hagander <magnus@hagander.net>
Re: BUG #4186: set lc_messages does not work Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #4186: set lc_messages does not work Bruce Momjian <bruce@momjian.us>
Re: BUG #4186: set lc_messages does not work Magnus Hagander <magnus@hagander.net>
Re: BUG #4186: set lc_messages does not work "Gevik Babakhani" <pgdev@xs4all.nl>
Re: BUG #4186: set lc_messages does not work Bruce Momjian <bruce@momjian.us>
Re: BUG #4186: set lc_messages does not work "Gevik Babakhani" <pgdev@xs4all.nl>
Re: BUG #4186: set lc_messages does not work Bruce Momjian <bruce@momjian.us>
Re: BUG #4186: set lc_messages does not work Hiroshi Inoue <inoue@tpf.co.jp>
Re: BUG #4186: set lc_messages does not work "Dave Page" <dpage@pgadmin.org>
Re: BUG #4186: set lc_messages does not work "Thomas H." <me@alternize.com>
Re: BUG #4186: set lc_messages does not work "Dave Page" <dpage@pgadmin.org>
Re: BUG #4186: set lc_messages does not work Euler Taveira de Oliveira <euler@timbira.com>
Re: BUG #4186: set lc_messages does not work "Thomas H." <me@alternize.com>
Re: BUG #4186: set lc_messages does not work Euler Taveira de Oliveira <euler@timbira.com>
Re: BUG #4186: set lc_messages does not work "Thomas H." <me@alternize.com>
euler taveira de olivieira wrote:

>> the patch discussed here [1] that supposedly made the win32 msvc 
>> builds use
>> lc_locale properly has flaws.
>>
> I think you misunderstood the feature [1] added recently. This new 

actually no. the problem is as i intended to point out with the system 
generated error messages. their language is supposedly controlled by 
LC_MESSAGES (as was  the time/date output, according to the first 
february patch submission).

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:


endor=# set lc_messages to 'sv_SE';
SET
endor=# select x;
FEHLER:  Spalte »x« existiert nicht
ZEILE 1: select x;
                 ^
endor=#
endor=# set lc_messages to 'de_DE';
SET
endor=# select x;
FEHLER:  Spalte »x« existiert nicht
ZEILE 1: select x;
                 ^
endor=#
endor=# set lc_messages to 'English_United_States';
SET
endor=# select x;
FEHLER:  Spalte »x« existiert nicht
ZEILE 1: select x;
                 ^
endor=#
endor=# set lc_messages to 'fr';
SET
endor=# select x;
FEHLER:  Spalte »x« existiert nicht
ZEILE 1: select x;


setting LC_MESSAGES in postgres.conf doesn't change anything either. and 
the comment there says explicitly that LC_MESSAGES is used for system 
errors:

lc_messages = 'English_United_States'			# locale for system error message
					# strings

nevertheless, everything is outputted in german now, errors as well as 
logs. which seems to hint at 8.3.1 ignoring the LC_MESSAGES and always 
using the os' locale.

regards,
thomas
В списке pgsql-bugs по дате отправления
От: Euler Taveira de Oliveira
Дата:
От: Euler Taveira de Oliveira
Дата:
FAQ