public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libstdc++/8104: cann't use wcout and wprintf to print wchat_t* in gcc-3.2 and gcc-3.1
@ 2002-09-30 21:46 dragzhb
0 siblings, 0 replies; 3+ messages in thread
From: dragzhb @ 2002-09-30 21:46 UTC (permalink / raw)
To: gcc-gnats
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1166 bytes --]
>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 <iostream>
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 <stdio.h>
#include <wchar.h>
//#include <stdarg.h>
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:
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libstdc++/8104: cann't use wcout and wprintf to print wchat_t* in gcc-3.2 and gcc-3.1
@ 2002-10-01 11:36 paolo
0 siblings, 0 replies; 3+ messages in thread
From: paolo @ 2002-10-01 11:36 UTC (permalink / raw)
To: dragzhb, gcc-bugs, gcc-prs, paolo
Synopsis: cann't use wcout and wprintf to print wchat_t* in gcc-3.2 and gcc-3.1
State-Changed-From-To: feedback->closed
State-Changed-By: paolo
State-Changed-When: Tue Oct 1 11:36:00 2002
State-Changed-Why:
Cannot reproduce with either 3.2 or current 3.3 snapshots.
Thanks, Paolo.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8104
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libstdc++/8104: cann't use wcout and wprintf to print wchat_t* in gcc-3.2 and gcc-3.1
@ 2002-10-01 0:35 paolo
0 siblings, 0 replies; 3+ messages in thread
From: paolo @ 2002-10-01 0:35 UTC (permalink / raw)
To: dragzhb, gcc-bugs, gcc-prs, nobody, paolo
Synopsis: cann't use wcout and wprintf to print wchat_t* in gcc-3.2 and gcc-3.1
Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Tue Oct 1 00:35:33 2002
Responsible-Changed-Why:
Analyzing.
State-Changed-From-To: open->feedback
State-Changed-By: paolo
State-Changed-When: Tue Oct 1 00:35:33 2002
State-Changed-Why:
Weird, I'll into it later today. Which kind of error do you
get? A compile-time or a run-time one?
Thanks, Paolo.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8104
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-10-01 18:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-30 21:46 libstdc++/8104: cann't use wcout and wprintf to print wchat_t* in gcc-3.2 and gcc-3.1 dragzhb
2002-10-01 0:35 paolo
2002-10-01 11:36 paolo
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).