Hi,
I have a fix for a problem I was having using the wprintf series of
calls with a format string like L"언어 %ls는(은)". _ppfs_parsespec would
bail when it hit the first Korean character, even though it had the
full format specifier. If there are any comments, please CC me as I'm
not subscribed to this mailing list.
Cheers,
---
Laine Walker-Avina
Frimware Engineer
PASCO scientific
--- uClibc-0.9.31/libc/stdio/_vfprintf.c 2010-04-02
08:34:27.000000000 -0700
+++ uClibc-0.9.31.bak/libc/stdio/_vfprintf.c 2010-06-02
15:54:29.000000000 -0700
@@ -868,7 +868,8 @@ int attribute_hidden _ppfs_parsespec(ppf
if ((buf[i] = (char) (((wchar_t *) ppfs->fmtpos)[i-1]))
!= (((wchar_t *) ppfs->fmtpos)[i-1])
) {
- return -1;
+ buf[i] = '\0';
+ break;
}
} while (buf[i++] && (i < sizeof(buf)));
buf[sizeof(buf)-1] = 0;
--
Laine Walker-Avina
Firmware Engineer
PASCO scientific
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc