This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug localedata/540] Printing a double messes up processing of locale-specific characters.
- From: "roger at infomine dot ucr dot edu" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 23 Nov 2004 17:49:47 -0000
- Subject: [Bug localedata/540] Printing a double messes up processing of locale-specific characters.
- References: <20041110195501.540.roger@infomine.ucr.edu>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From roger at infomine dot ucr dot edu 2004-11-23 17:49 -------
The original reporter sent the wrong test code by mistake. The correct test code, which still reproduces
the problem, even with g++-3.4, is as follows:
#include <iostream>
#include <clocale>
int main()
{
// std::setlocale(LC_CTYPE, "en_IE@euro");
std::setlocale(LC_CTYPE, "en_US.ISO-8859-15");
std::cout << (2.0) << '\n';
std::cout << (::isalpha('\xE8')?"true":"false") << '\n';
}
The result of this is to print 2 followed by false. Commenting out the std::cout << 2.0 line prints true,
instead. That is true with either choice of locale as specified above.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |
http://sources.redhat.com/bugzilla/show_bug.cgi?id=540
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.