From 7236870216251a7f39821f92deace717dde87f32 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 1 Aug 2024 14:37:18 +0000 Subject: automatic import of enscript --- enscript-1.6.1-locale.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 enscript-1.6.1-locale.patch (limited to 'enscript-1.6.1-locale.patch') diff --git a/enscript-1.6.1-locale.patch b/enscript-1.6.1-locale.patch new file mode 100644 index 0000000..5325ed0 --- /dev/null +++ b/enscript-1.6.1-locale.patch @@ -0,0 +1,26 @@ +--- enscript-1.6.1/src/main.c.locale Mon Mar 18 11:23:14 2002 ++++ enscript-1.6.1/src/main.c Mon Mar 18 11:24:08 2002 +@@ -912,9 +912,8 @@ + * We want to change only messages (gs do not like decimals in 0,1 + * format ;) + */ +-#if HAVE_LC_MESSAGES +- setlocale (LC_MESSAGES, ""); +-#endif ++ setlocale (LC_ALL, ""); ++ setlocale (LC_NUMERIC, "C"); + #endif + #if ENABLE_NLS + bindtextdomain (PACKAGE, LOCALEDIR); +--- enscript-1.6.1/src/psgen.c.locale Mon Mar 18 11:23:14 2002 ++++ enscript-1.6.1/src/psgen.c Mon Mar 18 11:23:14 2002 +@@ -1103,7 +1103,8 @@ + /* Get escape name. */ + for (i = 0; i < sizeof (escname) - 1 && (ch = is_getc (is)) != EOF; i++) + { +- if (!isalnum (ch)) ++ if (!((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'Z') || ++ (ch >= 'a' && ch <= 'z'))) + { + is_ungetc (ch, is); + break; -- cgit v1.2.3