This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc 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 localedata/540] New: Printing a double messes up processing of locale-specific characters.


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.


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