[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnulib] c-strtod.c patch for non-glibc mixed-locale encodings

From: Paul Eggert
Subject: Re: [Bug-gnulib] c-strtod.c patch for non-glibc mixed-locale encodings
Date: Wed, 08 Sep 2004 16:14:09 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Bruno Haible <address@hidden> writes:

> It has the effect of changing the locale in an undesired way, when a mixed
> locale is in effect. At least on AIX (all tested versions) and, if I recall
> it correctly, also on Linux/libc5.

Aack.  Thanks for mentioning that.  I reverted the change, which I had
put in only due to worry, not to encountering a real bug.

On second thought, since the standard only says that strtod inspects
LC_NUMERIC (and not any other locale category), one could argue that
even if LC_NUMERIC is incompatible with LC_CTYPE, strtod is still
supposed to work.  If so, then my patch wasn't necessary even on
standards-theoretical grounds.

Anyway, if I run into a real bug in the future we can revisit this.
(Anybody who'd use a multibyte radix character is asking for trouble
anyway, right?  :-)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]