Re: BUG #4186: set lc_messages does not work
От | Thomas H. |
---|---|
Тема | Re: BUG #4186: set lc_messages does not work |
Дата | |
Msg-id | 48362C7F.3050605@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
|
Список | pgsql-bugs |
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 по дате отправления: