Blame SOURCES/a2ps-4.13b-encoding.patch
|
|
0d8902 |
--- a2ps-4.13/etc/a2ps-site.cfg.in.encoding 2000-01-15 23:39:36.000000000 +0000
|
|
|
0d8902 |
+++ a2ps-4.13/etc/a2ps-site.cfg.in 2002-08-05 10:22:20.000000000 +0100
|
|
|
0d8902 |
@@ -11,7 +11,7 @@
|
|
|
0d8902 |
#################################################################
|
|
|
0d8902 |
|
|
|
0d8902 |
# Default encoding
|
|
|
0d8902 |
-Options: --encoding=@ENCODING@
|
|
|
0d8902 |
+#Options: --encoding=@ENCODING@
|
|
|
0d8902 |
|
|
|
0d8902 |
# Default medium
|
|
|
0d8902 |
Options: --medium=@MEDIUM@
|
|
|
0d8902 |
--- a2ps-4.13/src/main.c.encoding 2002-08-05 10:22:20.000000000 +0100
|
|
|
0d8902 |
+++ a2ps-4.13/src/main.c 2002-08-05 10:22:20.000000000 +0100
|
|
|
0d8902 |
@@ -32,6 +32,7 @@
|
|
|
0d8902 |
/************************************************************************/
|
|
|
0d8902 |
#include <assert.h>
|
|
|
0d8902 |
#include <string.h>
|
|
|
0d8902 |
+#include <langinfo.h>
|
|
|
0d8902 |
#include <locale.h>
|
|
|
0d8902 |
|
|
|
0d8902 |
#include "a2ps.h"
|
|
|
0d8902 |
@@ -1021,9 +1022,8 @@
|
|
|
0d8902 |
sheets_map = sheets_map_new ();
|
|
|
0d8902 |
style_sheets = new_style_sheets ();
|
|
|
0d8902 |
|
|
|
0d8902 |
- /* Process special case: Japanese Document */
|
|
|
0d8902 |
- if (! strncmp (locale, "ja", 2) )
|
|
|
0d8902 |
- job->requested_encoding_name = xstrdup ("euc-jp");
|
|
|
0d8902 |
+ /* Use locale to set default encoding. */
|
|
|
0d8902 |
+ job->requested_encoding_name = xstrdup (nl_langinfo (CODESET));
|
|
|
0d8902 |
|
|
|
0d8902 |
/* Process the command line options. */
|
|
|
0d8902 |
argn = a2ps_handle_options (job, argc, argv);
|
|
|
0d8902 |
--- a2ps-4.13/encoding/encoding.map.encoding 2002-08-05 10:22:20.000000000 +0100
|
|
|
0d8902 |
+++ a2ps-4.13/encoding/encoding.map 2002-08-05 10:38:55.000000000 +0100
|
|
|
0d8902 |
@@ -45,6 +45,7 @@
|
|
|
0d8902 |
latin1 iso1
|
|
|
0d8902 |
iso1 iso1
|
|
|
0d8902 |
iso-8859-1 iso1
|
|
|
0d8902 |
+ansi_x3.4-1968 iso1
|
|
|
0d8902 |
|
|
|
0d8902 |
latin2 iso2
|
|
|
0d8902 |
iso2 iso2
|
|
|
0d8902 |
@@ -128,3 +129,6 @@
|
|
|
0d8902 |
# Apple' Macintosh
|
|
|
0d8902 |
mac mac
|
|
|
0d8902 |
macintosh mac
|
|
|
0d8902 |
+
|
|
|
0d8902 |
+# We don't handle UTF-8 at all yet. Sometimes latin1 will work...
|
|
|
0d8902 |
+utf-8 iso1
|