View | Details | Raw Unified | Return to bug 53318
Collapse All | Expand All

(-)a2ps-4.15.6_copy/liba2ps/jobs.c (+4 lines)
Lines 120-125 Link Here
120
  setlocale (LC_MESSAGES, "");
120
  setlocale (LC_MESSAGES, "");
121
  setlocale (LC_CTYPE, "");
121
  setlocale (LC_CTYPE, "");
122
  setlocale (LC_PAPER, "");
122
  setlocale (LC_PAPER, "");
123
  /* Make sure dot will be used to separate fractional part of numbers.
124
   * In some other locales (polish, for example) comma is used, but this
125
   * is violation of PostScript. */
126
  setlocale(LC_NUMERIC, "C");
123
127
124
  bindtextdomain (PACKAGE, LOCALEDIR);
128
  bindtextdomain (PACKAGE, LOCALEDIR);
125
  bindtextdomain (PACKAGE "-gnulib", LOCALEDIR);
129
  bindtextdomain (PACKAGE "-gnulib", LOCALEDIR);
(-)a2ps-4.15.6_copy/liba2ps/output.c (+8 lines)
Lines 565-573 Link Here
565
  /* Open the destination */
565
  /* Open the destination */
566
  a2ps_open_output_stream (job);
566
  a2ps_open_output_stream (job);
567
567
568
  /* Make sure dot will be used to separate fractional part of numbers.
569
   * In some other locales (polish, for example) comma is used, but this
570
   * is violation of PostScript. */
571
  setlocale(LC_NUMERIC, "C");
572
568
  /* Dump the PostScript and close */
573
  /* Dump the PostScript and close */
569
  output_dump (job->divertion, job->output_stream->fp);
574
  output_dump (job->divertion, job->output_stream->fp);
570
575
576
  /* Restore locale */
577
  setlocale(LC_NUMERIC, "");
578
571
  /* We have to close stdout to avoid hanging up of pipes */
579
  /* We have to close stdout to avoid hanging up of pipes */
572
  /* Note: some day, I should learn about the signals, and be able
580
  /* Note: some day, I should learn about the signals, and be able
573
   * either to catch or to ignore the SIG_PIPE that happens
581
   * either to catch or to ignore the SIG_PIPE that happens

Return to bug 53318