components/enscript/patches/enscript-1.6.1-locale.patch
branchs11-update
changeset 2723 138732f62341
child 6638 c7defa3ae9cc
equal deleted inserted replaced
2722:dc566ca73390 2723:138732f62341
       
     1 --- enscript-1.6.1/src/main.c.locale	Mon Mar 18 11:23:14 2002
       
     2 +++ enscript-1.6.1/src/main.c	Mon Mar 18 11:24:08 2002
       
     3 @@ -912,9 +912,8 @@
       
     4     * We want to change only messages (gs do not like decimals in 0,1
       
     5     * format ;)
       
     6     */
       
     7 -#if HAVE_LC_MESSAGES
       
     8 -  setlocale (LC_MESSAGES, "");
       
     9 -#endif
       
    10 +  setlocale (LC_ALL, "");
       
    11 +  setlocale (LC_NUMERIC, "C");
       
    12  #endif
       
    13  #if ENABLE_NLS
       
    14    bindtextdomain (PACKAGE, LOCALEDIR);
       
    15 --- enscript-1.6.1/src/psgen.c.locale	Mon Mar 18 11:23:14 2002
       
    16 +++ enscript-1.6.1/src/psgen.c	Mon Mar 18 11:23:14 2002
       
    17 @@ -1103,7 +1103,8 @@
       
    18    /* Get escape name. */
       
    19    for (i = 0; i < sizeof (escname) - 1 && (ch = is_getc (is)) != EOF; i++)
       
    20      {
       
    21 -      if (!isalnum (ch))
       
    22 +      if (!((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'Z') ||
       
    23 +	    (ch >= 'a' && ch <= 'z')))
       
    24  	{
       
    25  	  is_ungetc (ch, is);
       
    26  	  break;