This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/29379] bad thousand separator with UTF-8 locales
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2006 17:03:05 -0000
- Subject: [Bug libstdc++/29379] bad thousand separator with UTF-8 locales
- References: <bug-29379-5724@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pcarlini at suse dot de 2006-10-07 17:03 -------
This a well known not a bug (I'm sure similar issues are discussed in the
mailing list, also user code implementing char <-> char conversions via iconv):
output to UTF-8 is done by wchar_t streams (thus, for example, wcout not cout),
which use a std::codecvt<wchar_t, char, mbstate_t> to convert from the internal
wchar_t representation to an external sequence of UTF-8 chars: note that
nothing in the standard mandates the availability in the library of non-trivial
conversions char <-> char. Many examples of proper UTF-8 output in the
testsuite.
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29379