Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37742846
en ru br
ALT Linux repositórios
S:4.14-alt3
5.0: 4.13-alt3
4.1: 4.13-alt3
4.0: 4.13-alt3
3.0: 4.13-alt2

Outros repositórios
Upstream:4.13b

Group :: Edição
RPM: a2ps

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: a2ps-2.13-pld-i18n.patch
Download


diff -urN a2ps-4.13.orig/lib/jobs.c a2ps-4.13/lib/jobs.c
--- a2ps-4.13.orig/lib/jobs.c	Sat Jun 23 16:00:37 2001
+++ a2ps-4.13/lib/jobs.c	Sat Jun 23 16:45:39 2001
@@ -139,6 +139,10 @@
 #endif
   setlocale (LC_CTYPE, "");
   setlocale (LC_PAPER, "");
+  /* Make sure dot will be used to separate fractional part of numbers.
+   * In some other locales (polish, for example) comma is used, but this
+   * is violation of PostScript. */
+  setlocale(LC_NUMERIC, "C");	
 
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
diff -urN a2ps-4.13.orig/lib/output.c a2ps-4.13/lib/output.c
--- a2ps-4.13.orig/lib/output.c	Tue Aug 31 19:42:41 1999
+++ a2ps-4.13/lib/output.c	Sat Jun 23 16:45:11 2001
@@ -619,9 +619,17 @@
 {
   /* Open the destination */
   a2ps_open_output_stream (job);
+  
+  /* Make sure dot will be used to separate fractional part of numbers.
+   * In some other locales (polish, for example) comma is used, but this
+   * is violation of PostScript. */
+  setlocale(LC_NUMERIC, "C");	
 
   /* Dump the PostScript and close */
   output_dump (job->divertion, job->output_stream->fp);
+
+  /* Restore locale */
+  setlocale(LC_NUMERIC, "");
 
   /* We have to close stdout to avoid hanging up of pipes */
   /* Note: some day, I should learn about the signals, and be able
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009