]> git.pld-linux.org Git - packages/a2ps.git/blob - a2ps-i18n.patch
- removed all Group fields translations (oure rpm now can handle translating
[packages/a2ps.git] / a2ps-i18n.patch
1 diff -urN a2ps-4.13.orig/lib/jobs.c a2ps-4.13/lib/jobs.c
2 --- a2ps-4.13.orig/lib/jobs.c   Sat Jun 23 16:00:37 2001
3 +++ a2ps-4.13/lib/jobs.c        Sat Jun 23 16:45:39 2001
4 @@ -139,6 +139,10 @@
5  #endif
6    setlocale (LC_CTYPE, "");
7    setlocale (LC_PAPER, "");
8 +  /* Make sure dot will be used to separate fractional part of numbers.
9 +   * In some other locales (polish, for example) comma is used, but this
10 +   * is violation of PostScript. */
11 +  setlocale(LC_NUMERIC, "C");  
12  
13    bindtextdomain (PACKAGE, LOCALEDIR);
14    textdomain (PACKAGE);
15 diff -urN a2ps-4.13.orig/lib/output.c a2ps-4.13/lib/output.c
16 --- a2ps-4.13.orig/lib/output.c Tue Aug 31 19:42:41 1999
17 +++ a2ps-4.13/lib/output.c      Sat Jun 23 16:45:11 2001
18 @@ -619,9 +619,17 @@
19  {
20    /* Open the destination */
21    a2ps_open_output_stream (job);
22 +  
23 +  /* Make sure dot will be used to separate fractional part of numbers.
24 +   * In some other locales (polish, for example) comma is used, but this
25 +   * is violation of PostScript. */
26 +  setlocale(LC_NUMERIC, "C");  
27  
28    /* Dump the PostScript and close */
29    output_dump (job->divertion, job->output_stream->fp);
30 +
31 +  /* Restore locale */
32 +  setlocale(LC_NUMERIC, "");
33  
34    /* We have to close stdout to avoid hanging up of pipes */
35    /* Note: some day, I should learn about the signals, and be able
This page took 0.029502 seconds and 3 git commands to generate.