This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/8652: wstring::c_str() not work
- From: ejoy at peoplemail dot com dot cn
- To: gcc-gnats at gcc dot gnu dot org
- Date: 20 Nov 2002 03:01:50 -0000
- Subject: libstdc++/8652: wstring::c_str() not work
- Reply-to: ejoy at peoplemail dot com dot cn
>Number: 8652
>Category: libstdc++
>Synopsis: wstring::c_str() not work
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 19 19:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Zhang Le
>Release: gcc 3.2
>Organization:
>Environment:
Linux rh7.3
>Description:
wstring::c_str() cause a compiler error
because current implementation try to return a
"" instead of L"" to wchar_t*.
>How-To-Repeat:
wstring ws;
wchar_t* str = ws.c_str();
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: