A patch for locale/programs/charmap.c

H.J. Lu hjl@lucon.org
Sat Oct 24 18:33:00 GMT 1998


Locale data in VSX-PCT have

<code_set_name>		"foobar"


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

	* locale/programs/charmap.c (parse_charmap): Accept tok_string
	for <code_set_name>.

Index: locale/programs/charmap.c
===================================================================
RCS file: /home/work/cvs/gnu/glibc/locale/programs/charmap.c,v
retrieving revision 1.1.1.8
diff -u -r1.1.1.8 charmap.c
--- charmap.c	1998/05/01 15:56:53	1.1.1.8
+++ charmap.c	1998/10/19 21:31:54
@@ -290,7 +290,7 @@
 	  switch (nowtok)
 	    {
 	    case tok_code_set_name:
-	      if (arg->tok != tok_ident)
+	      if (arg->tok != tok_ident && arg->tok != tok_string)
 		{
 		badarg:
 		  lr_error (cmfile, _("syntax error in prolog: %s"),



More information about the Libc-hacker mailing list