This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/7021] locale (faulty?) interfacts with strtod()
- From: "fmarmond at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 11 Nov 2008 15:14:49 -0000
- Subject: [Bug libc/7021] locale (faulty?) interfacts with strtod()
- References: <20081111144943.7021.fmarmond@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From fmarmond at gmail dot com 2008-11-11 15:14 -------
(In reply to comment #2)
> This is not a bug, it's the expected behavior. If you need to parse strings
> using the information from the C locale, switch to that locale temporarily or
> use strtod_l with an appropriate locale parameter.
switching locale for each call wouldn't be an option in many cases, but I think
strtod_l is the right answer!
I wasn't aware of this function (it even doesn't appear in my installed
man-pages... and I can't find package that may contain docs for it !).
Thanks for pointing it to me!
--
http://sourceware.org/bugzilla/show_bug.cgi?id=7021
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.