ALT Linux Bugzilla
– Attachment 17888 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-autoenc.patch
a2ps-2.13-pld-autoenc.patch (text/plain), 1.11 KB, created by
Usoltsev Petr
on 2025-03-05 10:43:37 MSK
(
hide
)
Description:
a2ps-2.13-pld-autoenc.patch
Filename:
MIME Type:
Creator:
Usoltsev Petr
Created:
2025-03-05 10:43:37 MSK
Size:
1.11 KB
patch
obsolete
>diff -Nru a2ps-4.15.6_copy/src/main.c a2ps-4.15.6/src/main.c >--- a2ps-4.15.6_copy/src/main.c 2025-02-28 17:01:52.916699393 +0800 >+++ a2ps-4.15.6/src/main.c 2025-02-28 17:23:29.851947397 +0800 >@@ -26,6 +26,7 @@ > > #include <signal.h> > #include <locale.h> >+#include <string.h> > > #include "a2ps.h" > #include "argmatch.h" >@@ -917,6 +918,7 @@ > main (int argc, char *argv[]) > { > int argn; >+ char *locale; > > /* Name under which this program was called. */ > program_name = base_name (argv[0]); >@@ -928,6 +930,9 @@ > setlocale (LC_CTYPE, ""); > setlocale (LC_PAPER, ""); > >+ locale = setlocale (LC_ALL, ""); >+ /* fprintf(stderr, "locale : %s\n", locale); */ >+ > bindtextdomain (PACKAGE, LOCALEDIR); > bindtextdomain (PACKAGE "-gnulib", LOCALEDIR); > textdomain (PACKAGE); >@@ -988,6 +993,10 @@ > sheets_map = sheets_map_new (); > style_sheets = new_style_sheets (); > >+ /* Process special case: Japanese Document */ >+ if (! strncmp (locale, "ja", 2) ) >+ job->requested_encoding_name = xstrdup ("euc-jp"); >+ > /* Process the command line options. */ > argn = a2ps_handle_options (job, argc, argv); > switch (behavior) {
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