summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/wcstoull.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-09-23 11:31:00 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-09-23 11:31:00 +0000
commite664429d770cb56bc6c2a8d07eeb5114748c22eb (patch)
treeab353e3265fdebf6293019638d63e62f68971b7a /newlib/libc/stdlib/wcstoull.c
parent70ecec052a16f4c9504442b25d1ea39cfb8e6ac9 (diff)
downloadcygnal-e664429d770cb56bc6c2a8d07eeb5114748c22eb.tar.gz
cygnal-e664429d770cb56bc6c2a8d07eeb5114748c22eb.tar.bz2
cygnal-e664429d770cb56bc6c2a8d07eeb5114748c22eb.zip
* strfuncs.cc (sys_cp_wcstombs): Convert lone surrogate pair
second halves to unambiguous ASCII SO sequence. When converting chars invalid in current codepage to ASCII SO sequence, make sure to check for surrogate pair second half only if ct least one wide characters is left. Decrement nwc if valid second half has been converted. (sys_cp_mbstowcs): Improve ASCII SO handling. Never break from loop if invalid character has been found. Recognize ASCII SO sequence representing originally invalid mulitbyte char converted into a lone surrogate pair second half. Convert accordingly.
Diffstat (limited to 'newlib/libc/stdlib/wcstoull.c')
0 files changed, 0 insertions, 0 deletions