Re: lc_numeric and decimal delimiter - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: lc_numeric and decimal delimiter
Date
Msg-id 20051108212305.GA1837@surnet.cl
Whole thread Raw
In response to lc_numeric and decimal delimiter  (Gavin Sherry <swm@linuxworld.com.au>)
List pgsql-hackers
Gavin Sherry wrote:

> I am at OpenDBCon in Germany. People are complaining about floats/numerics
> not accepting German/European conventions for the delimiter point -- a
> comma. This is hard coded into the the numeric input parser but,
> naturally, we use strtod() in else where. I'm not sure about the locale
> stuff and whether it deals with it. Are we in the wrong here?

Yes.  Unless you consider it reasonable to expect applications to parse
numeric input from users to change the decimal and thousands separators.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Robert Creager
Date:
Subject: Re: Assert failure found in 8.1RC1
Next
From: "Cristian Prieto"
Date:
Subject: Troubles with array_ref