This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A patch for locale/programs/ld-ctype.c


Locale data in VSX-PCT define <space>, not <SP>.


-- 
H.J. Lu (hjl@gnu.org)
---
Sat Oct 24 18:24:07 1998  H.J. Lu  <hjl@gnu.org>

	* locale/programs/ld-ctype.c (ctype_finish): Also check
	<space>.

Index: locale/programs/ld-ctype.c
===================================================================
RCS file: /home/work/cvs/gnu/glibc/locale/programs/ld-ctype.c,v
retrieving revision 1.1.1.9
diff -u -r1.1.1.9 ld-ctype.c
--- ld-ctype.c	1998/10/20 14:17:11	1.1.1.9
+++ ld-ctype.c	1998/10/20 15:05:41
@@ -313,6 +313,9 @@
   /* ... and now test <SP> as a special case.  */
   space_value = charset_find_value (&charset->char_table, "SP", 2);
   if ((wchar_t) space_value == ILLEGAL_CHAR_VALUE)
+    space_value = charset_find_value (&charset->char_table, "space", 5);
+
+  if ((wchar_t) space_value == ILLEGAL_CHAR_VALUE)
     {
       if (!be_quiet)
 	error (0, 0, _("character <SP> not defined in character map"));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]