From: Karel Zak <zakkr@zf.jcu.cz>
To: Carsten Grewe <DerReisende@schatzis.org>
Cc: pgsql-general@postgresql.org
Subject: Re: localization
Date: Fri, 21 Dec 2001 10:09:08 +0100
Message-ID: <20011221100907.A26140@zf.jcu.cz> (raw)
In-Reply-To: <200112202125.fBKLPIm81495@postgresql.org>
References: <200112202125.fBKLPIm81495@postgresql.org>
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@zf.jcu.cz>
http://home.zf.jcu.cz/~zakkr/
C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: zakkr@zf.jcu.cz, DerReisende@schatzis.org
Subject: Re: localization
In-Reply-To: <20011221100907.A26140@zf.jcu.cz>
References: <200112202125.fBKLPIm81495@postgresql.org> <20011221100907.A26140@zf.jcu.cz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox