Received: from ara.zf.jcu.cz (ara.zf.jcu.cz [160.217.161.4]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fBL999m43759 for ; Fri, 21 Dec 2001 04:09:09 -0500 (EST) (envelope-from zakkr@zf.jcu.cz) Received: from ara.zf.jcu.cz (zakkr@LOCALHOST [127.0.0.1]) by LOCALHOST (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id fBL998Z4027164; Fri, 21 Dec 2001 10:09:08 +0100 Received: (from zakkr@localhost) by ara.zf.jcu.cz (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id fBL9984S027161; Fri, 21 Dec 2001 10:09:08 +0100 Date: Fri, 21 Dec 2001 10:09:08 +0100 From: Karel Zak To: Carsten Grewe Cc: pgsql-general@postgresql.org Subject: Re: localization Message-ID: <20011221100907.A26140@zf.jcu.cz> References: <200112202125.fBKLPIm81495@postgresql.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200112202125.fBKLPIm81495@postgresql.org>; from DerReisende@schatzis.org on Thu, Dec 20, 2001 at 10:24:31PM +0100 X-Archive-Number: 200112/730 X-Sequence-Number: 18824 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 http://home.zf.jcu.cz/~zakkr/ C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz