[uClibc-cvs] uClibc/libc/misc/locale locale.c,1.18,1.19
Manuel Novoa III
mjn3 at uclibc.org
Wed Feb 11 23:48:42 UTC 2004
Update of /var/cvs/uClibc/libc/misc/locale
In directory nail:/tmp/cvs-serv16121/libc/misc/locale
Modified Files:
locale.c
Log Message:
New stdio core. Should be more maintainable. Fixes a couple of bugs.
Codepaths streamlined. Improved performance for nonthreaded apps
when linked with a thread-enabled libc.
Minor iconv bug and some locale/thread related startup issues fixed.
These showed up in getting a gcj-compiled java helloworld app running.
Removed some old extension functions... _stdio_fdout and _stdio_fsfopen.
Index: locale.c
===================================================================
RCS file: /var/cvs/uClibc/libc/misc/locale/locale.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- locale.c 14 Dec 2003 19:10:23 -0000 1.18
+++ locale.c 11 Feb 2004 23:48:40 -0000 1.19
@@ -346,7 +346,7 @@
/**********************************************************************/
#if defined(L__locale_init) && !defined(__LOCALE_C_ONLY)
-static __uclibc_locale_t __global_locale_data;
+__uclibc_locale_t __global_locale_data;
__locale_t __global_locale = &__global_locale_data;
@@ -1420,7 +1420,7 @@
mbstate_t ps;
const char *p = src;
size_t r;
- ps.mask = 0;
+ ps.__mask = 0;
r = _wchar_utf8sntowcs(dst, 1, &p, SIZE_MAX, &ps, 1);
return (r == 1) ? (p-src) : r; /* Need to return 0 if nul char. */
}
More information about the uClibc-cvs
mailing list