[Python-Dev] Re: Be Honest about LC_NUMERIC [REPOST] (original) (raw)

Gustavo J. A. M. Carneiro gjc at inescporto.pt
Mon Sep 1 12:07:43 EDT 2003


A Seg, 2003-09-01 às 09:34, Guido van Rossum escreveu:

> It is just that the patch does not "feel" right, given that there must > be "native" locale-inaware parsing of floating point constants > somewhere on each platform (atleast on those that support C++98).

FWIW, I have the same feeling, but the idea of having to support our own version of such code is even more uncomfortable. Maybe at least we can detect platforms for which we know there is a native conversion in the library, and not use the hack on those?

In case people haven't noticed, the second version of the patch, submitted following the first patch, already does that. It adds a configure.in check for glibc's strtod_l() and uses that instead of glib code whenever it's available. Only on non-glibc systems is the glib code compiled in.

Regards.

-- Gustavo João Alves Marques Carneiro <gjc at inescporto.pt> <gustavo at users.sourceforge.net>



More information about the Python-Dev mailing list