Re: Bug with locale (decimale/group seperator in numbers) - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Bug with locale (decimale/group seperator in numbers)
Date
Msg-id 16939.1053612256@sss.pgh.pa.us
Whole thread Raw
In response to Bug with locale (decimale/group seperator in numbers)  (Hannes Wenzel <h.wenzel@aon.at>)
List pgsql-bugs
Hannes Wenzel <h.wenzel@aon.at> writes:
> A select with a to_char function to convert number to formated output with
> locale support produces wrong group seperator characters.

I think this must be a bug in the definition of that particular locale
on your system.  I get reasonable-looking behavior here:

regression=# select to_char(1719000.00000,'999G999G990D00');
     to_char
-----------------
    1,719,000.00
(1 row)

regression=# set lc_numeric TO 'de_DE.iso885915@euro';
SET
regression=# select to_char(1719000.00000,'999G999G990D00');
     to_char
-----------------
    1.719.000,00
(1 row)


            regards, tom lane

pgsql-bugs by date:

Previous
From: Jari Aalto
Date:
Subject: 7.3.2 doc bug - A.1. Getting The Source Via Anonymous CVS
Next
From: Sean Chittenden
Date:
Subject: Different results in a loop with RECORD vs ROWTYPE...