This is the mail archive of the
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:
> 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.
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.
Cygwin Project Co-Leader