This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
if (p != NULL) { size = p - cp; if (size > prec) size = prec; } else size = prec; } else size = wcslen (cp);
break; Craig
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. CraigThe _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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |