This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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 libstdc++/12859] Output of floating point value changes global locale


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!


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