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: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jun 2006 13:49:31 -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 #4 from pcarlini at suse dot de 2006-06-16 13:49 -------
(In reply to comment #3)
> 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äß»$
Ok, thanks. Then I used the "en_US.UTF-8" locale and it worked fine, both
mainline and stock 4.1.1: no crashes, apparently same output.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28059