[BUG] wprintf(L"%s", str) expects str to be wide

Corinna Vinschen vinschen@redhat.com
Fri Jan 11 15:08:00 GMT 2013


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



More information about the Newlib mailing list