public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/10534] wcout can only print ASCII,can't print other language,eg. chinese.
[not found] <bug-10534-5896@http.gcc.gnu.org/bugzilla/>
@ 2006-10-20 9:28 ` bkoz at gcc dot gnu dot org
0 siblings, 0 replies; 3+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2006-10-20 9:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from bkoz at gcc dot gnu dot org 2006-10-20 09:28 -------
Ie:
#include <iostream>
int
main()
{
using namespace std;
const wchar_t w1 = { 0x4e2d };// U+20013 == 0x4E2D
const wchar_t w2 = { 0x56fd };// U+22269 == 0x56FD
const wchar_t w3(20013);
const wchar_t w4(22269);
locale loc("zh_CN.utf8");
locale::global(loc);
wcout << w1 << endl;
wcout << w2 << endl;
wcout << w3 << endl;
wcout << w4 << endl;
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10534
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libstdc++/10534] wcout can only print ASCII,can't print other language,eg. chinese.
[not found] <20030429084600.10534.dragzhb@yahoo.com.cn>
2003-08-18 13:43 ` peturr02 at ru dot is
@ 2003-08-18 13:47 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-18 13:47 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10534
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-18 13:47 -------
Test is invalid as explained in the previous comment.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libstdc++/10534] wcout can only print ASCII,can't print other language,eg. chinese.
[not found] <20030429084600.10534.dragzhb@yahoo.com.cn>
@ 2003-08-18 13:43 ` peturr02 at ru dot is
2003-08-18 13:47 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: peturr02 at ru dot is @ 2003-08-18 13:43 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10534
------- Additional Comments From peturr02 at ru dot is 2003-08-18 13:43 -------
The test case is broken. In order to output non-ascii characters with wcout,
the global locale must be set correctly before the first output operation.
The bug used to be real though, but should be fixed on mainline.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-10-20 9:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-10534-5896@http.gcc.gnu.org/bugzilla/>
2006-10-20 9:28 ` [Bug libstdc++/10534] wcout can only print ASCII,can't print other language,eg. chinese bkoz at gcc dot gnu dot org
[not found] <20030429084600.10534.dragzhb@yahoo.com.cn>
2003-08-18 13:43 ` peturr02 at ru dot is
2003-08-18 13:47 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).