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