This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/7021] locale (faulty?) interfacts with strtod()


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]