This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [BUG] wprintf(L"%s", str) expects str to be wide
On Jan 11 09:52, Craig Howland wrote:
> Corinna:
> It appears, taking a quick glance at the source, that the string
> is only treated as regular characters if _MB_CAPABLE is
> defined--otherwise it falls into a wide-character-only case. This
> could perhaps explain the differing results.
> Craig
The _MB_CAPABLE code only handles the case which converts wide chars
into multibyte chars. The default code right after the #endif handles
the incoming string as plain byte string.
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat