This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/28059] codecvt locale facet is broken (reproducible crash)
- From: "rleigh at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jun 2006 13:41:56 -0000
- Subject: [Bug libstdc++/28059] codecvt locale facet is broken (reproducible crash)
- References: <bug-28059-7852@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rleigh at debian dot org 2006-06-16 13:41 -------
The source is UTF-8 encoded, and it assumes you are going to run it in a UTF-8
locale. That might possibly be why you get odd output.
The expected output should be as per the GCC 3.4 output in the original report:
$ g++-3.4 -o wide wide.cc
$ ./wide
1
fffäß»fffäß»$
where '$' is the shell prompt. This output was also verified by someone with
access to a MS VC++ compiler (source recoded to Windows character set).
If the source file got corrupted by bugzilla, it's also available from
http://people.debian.org/~rleigh/wide.cc
I'll check out the testsuite next.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28059