Re: [BUGS] wrong behavior using to_char() - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: [BUGS] wrong behavior using to_char()
Date
Msg-id 200702130201.l1D21Ju24541@momjian.us
Whole thread Raw
In response to Re: [BUGS] wrong behavior using to_char()  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > Ultimately, the result was that glibc was wrong in its locale settings,
> > and there was a suggestion to use defaults only when using the C locale.
> > However, I am worried there are too many locales in the field that only
> > define some of the locale setting, so doing defaults only for the C
> > locale might not work.
>
> > The minimal patch I wrote (attached), suppresses the default for the
> > thousands separator only if is is the same as the decimal separator.  I
> > think this is the only area where the default could potentially match
> > the locale setting for another field.
>
> Should we really go introducing strange misbehaviors into our code to
> work around an admitted glibc bug?

Seems there is no interest in handling this specific case, so I withdraw
the patch, but I have added a comment with a date in case we need to
revisit it.

--
  Bruce Momjian  <bruce@momjian.us>          http://momjian.us
  EnterpriseDB                               http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-patches by date:

Previous
From: Greg Smith
Date:
Subject: Re: New features for pgbench
Next
From: Greg Smith
Date:
Subject: Re: New features for pgbench