libstdc++/10534: wcout can only print ASCII,can't print other language,eg. chinese.

dragzhb@yahoo.com.cn dragzhb@yahoo.com.cn
Tue Apr 29 08:46:00 GMT 2003


>Number:         10534
>Category:       libstdc++
>Synopsis:       wcout can only print ASCII,can't print other language,eg. chinese.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 29 08:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     dragzhb@yahoo.com.cn
>Release:        gcc-3.2.2
>Organization:
>Environment:
redhat linux 9.0
>Description:
wcout can only print ASCII,can't print other language,eg. chinese. this bug exist in gcc 3.1.* and 3.2.*, I have report this bug in gcc3.2 bug No. 8104.

The following is source code.

#include <iostream>

using namespace std;

int 
main(int argc, char** argv)
{
	const wchar_t* src  = L"hello 中国";
	wcout << "src: " << src << endl;	

}
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-prs mailing list