[uClibc-cvs] cvs commit to uClibc/libc/stdio by mjn3

mjn3 at uclibc.org mjn3 at uclibc.org
Mon Nov 4 21:27:45 UTC 2002


Repository: uClibc/libc/stdio
who:        mjn3
time:       Mon Nov  4 14:27:45 MST 2002


Log Message:

Add printf wchar support for %lc (%C) and %ls (%S).
Require printf format strings to be valid multibyte strings beginning and
  ending in their initial shift state, as per the stds.

Fixed a bug in _wchar_wcsntoutf8s().  Don't store wcs position if dst is NULL.
Also, introduce an awful hack into _wchar_wcsntoutf8s() and wcsrtombs() in
  order to support %ls in printf.  See comments below for details.
Change behaviour of wc<->mb functions when in the C locale.  Now they do
  a 1-1 map for the range 0x80-UCHAR_MAX.  This is for backwards compatibility
  and consistency with the stds requirements that a printf format string by
  a valid multibyte string beginning and ending in it's initial shift state.


Files:

changed:    printf.c




More information about the uClibc-cvs mailing list