a2ps/a2ps-4.13b-encoding.patch
cvsdist 42af6945bb auto-import changelog data from a2ps-4.13b-23.src.rpm
Fri Jun 21 2002 Tim Powers <timp@redhat.com>
- automated rebuild
Fri Jun 21 2002 Tim Waugh <twaugh@redhat.com> 4.13b-22
- Fix koi8 tilde (bug #66393).
Thu May 30 2002 Tim Waugh <twaugh@redhat.com> 4.13b-21
- Provide a2ps-i18n (bug #65231).
- Fix default encoding (bug #64584).
Thu May 23 2002 Tim Powers <timp@redhat.com> 4.13b-20
- automated rebuild
2004-09-09 02:52:20 +00:00

43 lines
1.4 KiB
Diff

--- a2ps-4.13/etc/a2ps-site.cfg.in.encoding 2002-05-30 17:15:42.000000000 +0100
+++ a2ps-4.13/etc/a2ps-site.cfg.in 2002-05-30 17:15:42.000000000 +0100
@@ -11,7 +11,7 @@
#################################################################
# Default encoding
-Options: --encoding=@ENCODING@
+#Options: --encoding=@ENCODING@
# Default medium
Options: --medium=@MEDIUM@
--- a2ps-4.13/src/main.c.encoding 2002-05-30 17:15:42.000000000 +0100
+++ a2ps-4.13/src/main.c 2002-05-30 17:15:42.000000000 +0100
@@ -32,6 +32,7 @@
/************************************************************************/
#include <assert.h>
#include <string.h>
+#include <langinfo.h>
#include <locale.h>
#include "a2ps.h"
@@ -1021,9 +1022,8 @@
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");
+ /* Use locale to set default encoding. */
+ job->requested_encoding_name = xstrdup (nl_langinfo (CODESET));
/* Process the command line options. */
argn = a2ps_handle_options (job, argc, argv);
--- a2ps-4.13/encoding/encoding.map.encoding 2002-05-30 17:28:42.000000000 +0100
+++ a2ps-4.13/encoding/encoding.map 2002-05-30 17:29:07.000000000 +0100
@@ -45,6 +45,7 @@
latin1 iso1
iso1 iso1
iso-8859-1 iso1
+ansi_x3.4-1968 iso1
latin2 iso2
iso2 iso2