From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org, Eugen Nedelcu <eugen(at)sifolt(dot)ro> |
Subject: | Re: [PATCHES] thousands comma numeric formatting in psql |
Date: | 2005-07-12 15:50:46 |
Message-ID: | 200507121550.j6CFokR05342@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Tom Lane wrote:
> >> This patch sounds quite a lot different from what I thought we had
> >> agreed to, which was a way to specify that the client-side LC_NUMERIC
> >> locale settings should be used for formatting numbers. I think the only
> >> pset should be "locale on" or "locale not on". This business about
> >> space is a red herring: if you want that, create a locale spec that
> >> specifies it.
>
> > Well, how many people have langinfo? I don't.
>
> What's langinfo got to do with it? To minimize our portability
> exposure, the patch should use the same facilities that
> src/backend/utils/adt/pg_locale.c already depends on, namely
> setlocale() and localeconv().
The original patch included "langinfo.h" and used this call to set the
default separator:
char *dec_point = nl_langinfo(__DECIMAL_POINT);
I don't see __DECIMAL_POINT defined anywhere on the FreeBSD 4.11 box we
use for CVS.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-07-12 16:20:09 | Re: CONCURRENT INDEXing again (was: Must be owner to truncate?) |
Previous Message | Tom Lane | 2005-07-12 15:32:52 | Re: [PATCHES] thousands comma numeric formatting in psql |
From | Date | Subject | |
---|---|---|---|
Next Message | David Fetter | 2005-07-12 16:50:58 | Re: [PATCHES] thousands comma numeric formatting in psql |
Previous Message | Tom Lane | 2005-07-12 15:32:52 | Re: [PATCHES] thousands comma numeric formatting in psql |