Locale bug fix

Mark Kettenis kettenis@wins.uva.nl
Sat Jul 22 08:31:00 GMT 2000


I belive this fix is necessary (without it I get a segmentation fault
in the perl 5.6.0 testsuite on the Hurd).

Mark


2000-07-22  Mark Kettenis  <kettenis@gnu.org>

	* locale/findlocale.c (locale_file_list): Use __LC_LAST as array
	size instead of LC_ALL to take into account the new locale
	categories.


Index: locale/findlocale.c
===================================================================
RCS file: /cvs/glibc/libc/locale/findlocale.c,v
retrieving revision 1.17
diff -u -p -r1.17 findlocale.c
--- locale/findlocale.c	2000/06/16 22:55:50	1.17
+++ locale/findlocale.c	2000/07/22 15:29:16
@@ -34,7 +34,7 @@ extern struct locale_data *const _nl_C[]
 
 /* For each category we keep a list of records for the locale files
    which are somehow addressed.  */
-static struct loaded_l10nfile *locale_file_list[LC_ALL];
+static struct loaded_l10nfile *locale_file_list[__LC_LAST];
 
 
 struct locale_data *


More information about the Libc-hacker mailing list