This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libstdc++/2103: No support for wchar i/o



>Number:         2103
>Category:       libstdc++
>Synopsis:       No support for wchar i/o
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          mistaken
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 26 09:16:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Ralf Bartzke
>Release:        wchar-io-1.0
>Organization:
>Environment:
http://www.codesourcery.com/gcc-compile.shtml
Online Test Compilation && SUSE Linux 6.4
>Description:
#include <stdio.h>
#include <wchar.h>

int main(void)
{
	wprintf(L"Hello\n");	// gcc reports: 'wprintf' undeclared
	//printf("Hello\n");	// work fine
}
>How-To-Repeat:
Try it simply on Online Test Compilation.
>Fix:
Using non-wchar-io (printf, scanf ...), transform data to
wchar_t and back to char.
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]