Re: [PATCHES] thousands comma numeric formatting in psql - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCHES] thousands comma numeric formatting in psql
Date
Msg-id 19674.1121182372@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCHES] thousands comma numeric formatting in psql  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [PATCHES] thousands comma numeric formatting in psql  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.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().
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] thousands comma numeric formatting in psql
Next
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] thousands comma numeric formatting in psql