From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27333 invoked by alias); 1 Oct 2002 04:46:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 27314 invoked by uid 71); 1 Oct 2002 04:46:01 -0000 Resent-Date: 1 Oct 2002 04:46:01 -0000 Resent-Message-ID: <20021001044601.27313.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, dragzhb@163.net Received: (qmail 23298 invoked by uid 61); 1 Oct 2002 04:37:52 -0000 Message-Id: <20021001043752.23297.qmail@sources.redhat.com> Date: Mon, 30 Sep 2002 21:46:00 -0000 From: dragzhb@163.net Reply-To: dragzhb@163.net To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: libstdc++/8104: cann't use wcout and wprintf to print wchat_t* in gcc-3.2 and gcc-3.1 X-SW-Source: 2002-09/txt/msg00897.txt.bz2 List-Id: >Number: 8104 >Category: libstdc++ >Synopsis: cann't use wcout and wprintf to print wchat_t* in gcc-3.2 and gcc-3.1 >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Sep 30 21:46:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: dragzhb@163.net >Release: gcc-3.2 >Organization: >Environment: linux and cygwin >Description: I cann't use wcout and wprintf to print wchat_t string in gcc-3.2 and gcc-3.1,but I can use wcout to print wchar_t* in gcc-3.0.4,that's why? the following lines are the source code: #include using namespace std; //#define _GLIBCPP_USE_WCHAR_T int main(int argc, char** argv) { const wchar_t* src = L"hello ÕÅ»¹±ö´ø·ÖÊý¶¯"; wcout << "src: " << src << endl; } #include #include //#include int main(int argc, char** argv) { const wchar_t* src = L"hello ÕÅ»¹±ö´ø·ÖÊý¶¯"; wprintf(L"wstring is : %s \n",src); return 0; } >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: