This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug localedata/540] New: 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: 10 Nov 2004 19:55:11 -0000
- Subject: [Bug localedata/540] New: Printing a double messes up processing of locale-specific characters.
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
I'm running debian sid with glibc 2.3.2.ds1-18. When I run the following code I
get "false", but if I comment out the "cout << (2.0)" line I get true. This
only applies to printing of doubles and not to strings or ints. I have the
"en_IE@euro ISO-8859-15" locale installed on my system.
#include <iostream>
#include <clocale>
int main()
{
std::setlocale(LC_CTYPE, "en_IE@euro");
std::cout << (2.0) << '\n';
std::cout << (::isalpha('é')?"true":"false") << '\n';
}
--
Summary: Printing a double messes up processing of locale-
specific characters.
Product: glibc
Version: 2.3.2
Status: NEW
Severity: normal
Priority: P2
Component: localedata
AssignedTo: pere at hungry dot com
ReportedBy: roger at infomine dot ucr dot edu
CC: glibc-bugs at sources dot redhat dot com
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.