NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/54411: std::locale broken



The following reply was made to PR toolchain/54411; it has been noted by GNATS.

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: toolchain/54411: std::locale broken
Date: Sat, 27 Jul 2019 14:59:54 +0700

 Looks like a program bug.   The thousance separator for "fr_FR.UTF-8"
 in the locale spec is 0xc2a0 (UTF-8 encoding of 0xA0 the unbreakable space).
 
 That doesn't fit in a char variable.
 
 Whether this is a C++ definition problem - the standard locale
 definitions define the thousands sep as a string, not a char, and
 if C++ thinks it is a char, then it is broken, or just a program
 bug (trying to treat the string as if it were a char) I don't know.
 
 kre
 


Home | Main Index | Thread Index | Old Index