This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/12859] Output of floating point value changes global locale
- From: "paolo at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2003 22:24:51 -0000
- Subject: [Bug libstdc++/12859] Output of floating point value changes global locale
- References: <20031031155935.12859.pthomas@suse.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12859
------- Additional Comments From paolo at gcc dot gnu dot org 2003-10-31 22:24 -------
Another observation: actually, only the behavior of isalpha changes (and probably
that of all the other functions provided also in the *_l version by glibc2.3.*)
whereas the thread local locale is properly restored to de_DE after the formatted
output: try a sequence of 3 printf("%f\n", 1.2) instead and you will notice that
the third one, correctly (as prescribed by the de_DE locale, that is) prints the
decimal separator as a comma, not as a dot!