Re: localization

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Carsten Grewe <DerReisende(at)schatzis(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: localization
Date: 2001-12-21 09:09:08
Message-ID: 20011221100907.A26140@zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Dec 20, 2001 at 10:24:31PM +0100, Carsten Grewe wrote:
> Hi,
>
> I am a bit lost here. I have tried to convince pgsql to show numbers with a
> decimal-comma (german style) instead of the decimal-point. I was told in this
> list, that the important variables are set during initdb. So I set all
> variables I could imagine (LANG, LC_COLLATE, LC_CTYPE, LC_NUMERIC etc. - also
> LANG should have been enough in my understanding) to de_DE, made dumpall, rm
> data, initdb and tried again. Still 150.54 not 150,54 in psql. I been looking
> for further documentation, but it does not seem to be a big problem for most
> users. I must do something wrong - could you please give me a hint.

The backend ignore LC_NUMERIC. If you want output numbers in locale
depend format use to_char() (for example to_char(1234.5, '9G999D9').

Karel

--
Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
http://home.zf.jcu.cz/~zakkr/

C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard NAGY 2001-12-21 09:55:28 strange problem with plpgsql
Previous Message John Fabiani 2001-12-21 05:03:17 Does postgres support data type BLOB