svn commit: branches/uClibc-nptl/extra/locale

sjhill at uclibc.org sjhill at uclibc.org
Mon Aug 21 04:44:50 UTC 2006


Author: sjhill
Date: 2006-08-20 21:44:50 -0700 (Sun, 20 Aug 2006)
New Revision: 15879

Log:
Merge from trunk.


Modified:
   branches/uClibc-nptl/extra/locale/gen_wctype.c


Changeset:
Modified: branches/uClibc-nptl/extra/locale/gen_wctype.c
===================================================================
--- branches/uClibc-nptl/extra/locale/gen_wctype.c	2006-08-21 04:44:40 UTC (rev 15878)
+++ branches/uClibc-nptl/extra/locale/gen_wctype.c	2006-08-21 04:44:50 UTC (rev 15879)
@@ -8,10 +8,6 @@
 #include <wchar.h>
 #include <ctype.h>
 
-#ifdef __linux__
-#include <sys/resource.h>
-#endif
-
 #ifndef _CTYPE_H
 #define _CTYPE_H
 #endif
@@ -245,14 +241,6 @@
 	static const char empty_slot[] = "empty_slot";
 	int built = 0;
 
-#ifdef __linux__
-	struct rlimit limit;
-
-	limit.rlim_max = RLIM_INFINITY;
-	limit.rlim_cur = RLIM_INFINITY;
-	setrlimit(RLIMIT_STACK, &limit);
-#endif
-
 #define INIT_TYPENAME(X) typename[__CTYPE_##X] = "C_" #X
 
 	for (i=0 ; i < 16 ; i++) {
@@ -279,7 +267,7 @@
 
 	while (--argc) {
 		if (!setlocale(LC_CTYPE, *++argv)) {
-			printf("setlocale(LC_CTYPE,%s) failed!\n", *argv);
+			printf("setlocale(LC_CTYPE,%s) failed!  Skipping this locale...\n", *argv);
 			continue;
 		}
 
@@ -785,6 +773,8 @@
 	unsigned char uit[RANGE+1];
 	int shift2;
 
+	memset(uniqblock, 0x00, sizeof(uniqblock));
+
 	ii_save = NULL;
 	blocksize = 1 << shift;
 	numblocks = usize >> shift;




More information about the uClibc-cvs mailing list