Blame SOURCES/enscript-1.6.1-locale.patch

015c64
--- enscript-1.6.1/src/main.c.locale	Mon Mar 18 11:23:14 2002
015c64
+++ enscript-1.6.1/src/main.c	Mon Mar 18 11:24:08 2002
015c64
@@ -912,9 +912,8 @@
015c64
    * We want to change only messages (gs do not like decimals in 0,1
015c64
    * format ;)
015c64
    */
015c64
-#if HAVE_LC_MESSAGES
015c64
-  setlocale (LC_MESSAGES, "");
015c64
-#endif
015c64
+  setlocale (LC_ALL, "");
015c64
+  setlocale (LC_NUMERIC, "C");
015c64
 #endif
015c64
 #if ENABLE_NLS
015c64
   bindtextdomain (PACKAGE, LOCALEDIR);
015c64
--- enscript-1.6.1/src/psgen.c.locale	Mon Mar 18 11:23:14 2002
015c64
+++ enscript-1.6.1/src/psgen.c	Mon Mar 18 11:23:14 2002
015c64
@@ -1103,7 +1103,8 @@
015c64
   /* Get escape name. */
015c64
   for (i = 0; i < sizeof (escname) - 1 && (ch = is_getc (is)) != EOF; i++)
015c64
     {
015c64
-      if (!isalnum (ch))
015c64
+      if (!((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'Z') ||
015c64
+	    (ch >= 'a' && ch <= 'z')))
015c64
 	{
015c64
 	  is_ungetc (ch, is);
015c64
 	  break;