[uClibc-cvs] uClibc/extra/locale gen_wc8bit.c, 1.4, 1.5 gen_wctype.c, 1.3, 1.4

Manuel Novoa III mjn3 at uclibc.org
Tue Sep 16 22:22:34 UTC 2003


Update of /var/cvs/uClibc/extra/locale
In directory winder:/tmp/cvs-serv31146/extra/locale

Modified Files:
	gen_wc8bit.c gen_wctype.c 
Log Message:
This should enabled building of uClibc locale support when using uClibc itself.
Sorry I didn't test this before the release.

Please remember that the locale data generation tools are not very robust,
so doing something like disabling 8-bit codeset support is likely to break
things.  As it stands, UTF-8 support is required, but I'm not sure I test
for that.

Also, you will notice a difference in the locale data generated by uClibc
verses glibc.  That's because the bg_BG locale specifies use of grouping
in LC_NUMERIC, but supplies no grouping char.  The uClibc locale code
tests for and works around this (at the moment) by disabling grouping.
But the result is slightly different data which ripples throughout the
rest of the tables.



Index: gen_wctype.c
===================================================================
RCS file: /var/cvs/uClibc/extra/locale/gen_wctype.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- gen_wctype.c	1 Aug 2003 20:08:39 -0000	1.3
+++ gen_wctype.c	16 Sep 2003 22:22:30 -0000	1.4
@@ -10,12 +10,13 @@
 #include <wchar.h>
 #include <ctype.h>
 
-#ifndef __UCLIBC__
+#ifndef _CTYPE_H
+#define _CTYPE_H
+#endif
 #ifndef _WCTYPE_H
 #define _WCTYPE_H
 #endif
 #include "../../libc/sysdeps/linux/common/bits/uClibc_ctype.h"
-#endif
 
 /*       0x9 : space  blank */
 /*       0xa : space */

Index: gen_wc8bit.c
===================================================================
RCS file: /var/cvs/uClibc/extra/locale/gen_wc8bit.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- gen_wc8bit.c	1 Aug 2003 20:08:39 -0000	1.4
+++ gen_wc8bit.c	16 Sep 2003 22:22:30 -0000	1.5
@@ -7,12 +7,13 @@
 #include <wctype.h>
 #include <limits.h>
 
-#ifndef __UCLIBC__
+#ifndef _CTYPE_H
+#define _CTYPE_H
+#endif
 #ifndef _WCTYPE_H
 #define _WCTYPE_H
 #endif
 #include "../../libc/sysdeps/linux/common/bits/uClibc_ctype.h"
-#endif
 
 
 /*  #define CTYPE_PACKED */




More information about the uClibc-cvs mailing list