[Bug libstdc++/12859] New: Output of floating point value changes global lokale
pthomas at suse dot de
gcc-bugzilla@gcc.gnu.org
Fri Oct 31 16:02:00 GMT 2003
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
Summary: Output of floating point value changes global lokale
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pthomas at suse dot de
CC: aj at suse dot de,gcc-bugs at gcc dot gnu dot org
Putting out a floating point value seems to change the global C locale. Just
compile and run the attached test program and you'll see that the last call
to isalpha returns false instead of the expected true. If you comment out the
line that outputs the fp value, isalpha returns true as expected.
3.3.1 and 3.3.2 also have the same bug that I consider quite nasty and
unexpected.
More information about the Gcc-bugs
mailing list