ALT Linux Bugzilla
– Attachment 17892 Details for
Bug 53318
a2ps v4.15.6 in Sisyphus
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
a2ps-2.13-pld-i18n.patch
a2ps-2.13-pld-i18n.patch (text/plain), 1.46 KB, created by
Usoltsev Petr
on 2025-03-05 10:45:27 MSK
(
hide
)
Description:
a2ps-2.13-pld-i18n.patch
Filename:
MIME Type:
Creator:
Usoltsev Petr
Created:
2025-03-05 10:45:27 MSK
Size:
1.46 KB
patch
obsolete
>diff -Nru a2ps-4.15.6_copy/liba2ps/jobs.c a2ps-4.15.6/liba2ps/jobs.c >--- a2ps-4.15.6_copy/liba2ps/jobs.c 2025-02-28 17:26:49.042062630 +0800 >+++ a2ps-4.15.6/liba2ps/jobs.c 2025-02-28 17:31:03.680488314 +0800 >@@ -120,6 +120,10 @@ > setlocale (LC_MESSAGES, ""); > 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); > bindtextdomain (PACKAGE "-gnulib", LOCALEDIR); >diff -Nru a2ps-4.15.6_copy/liba2ps/output.c a2ps-4.15.6/liba2ps/output.c >--- a2ps-4.15.6_copy/liba2ps/output.c 2025-02-28 17:26:49.008062441 +0800 >+++ a2ps-4.15.6/liba2ps/output.c 2025-02-28 17:35:36.962013580 +0800 >@@ -565,9 +565,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 > * either to catch or to ignore the SIG_PIPE that happens
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 53318
:
17887
|
17888
|
17889
|
17890
|
17891
| 17892 |
17893
|
17894
|
17895
|
17896