bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem of fputws&co when sizeof(wchar_t)==2


From: Zirong Wang
Subject: problem of fputws&co when sizeof(wchar_t)==2
Date: Mon, 22 Jan 2001 18:16:54 +0100

dear glibc maintainer,

I compiled the gcc 2.95.2 by setting the size of wchar_t to 2 bytes,
(by changing WCHAR_TYPE and WCHAR_TYPE_SIZE in config/i386/linux.h)
a dumb program proved that the size of wchar_t is actually 2.

And I then compiled glibc 2.2 with the newly compiled compiler,
the sizeof(wchar_t) in the library routine such as fputws is 
effectively 2 bytes. Great, but the result of fputws is the
content of my file is all "???????????????????????".

Note that glibc 2.2 _works fine_ when it is compiled with a 
vanilla gcc whose wchar_t is 4 bytes wide.

hope having any suggestions.

---------------------------------------------------------------------
Zirong Wang    Oce Industries  1, Rue J. Lemoine 94015 Creteil France



reply via email to

[Prev in Thread] Current Thread [Next in Thread]