This is the mail archive of the
mailing list for the glibc project.
wprintf failure when compiled with -fshort-wchar
- From: Alexey Kravets <mr dot kayrick at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Thu, 5 Apr 2012 17:36:58 +0400
- Subject: wprintf failure when compiled with -fshort-wchar
I have a problem with eglibc-2.14 wprintf function.
The library has been compiled with ARM cross compiler with
-fshort-wchar option enabled.
Then, for the following test (also compiled with -fshort-wchar option enabled):
The output is "??" instead of TEST.
If the test is compiled without -fshort-wchar option, the output is
fine (it printf TEST string as expected).
Quick debugging showed, that wchar_t size in glibs is 16 bits
(-fshort-wchar option has been applied to build).
Can you suggest any ways to fix this issue?