summaryrefslogtreecommitdiff
path: root/textproc/jade/files/patch-CharsetRegistry.cxx
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2004-08-03 23:25:17 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2004-08-03 23:25:17 +0000
commitec0cd061657250c1c1441ef32dd340c739608b74 (patch)
tree31f8617528d9136969bf7445e1dc961c568537b8 /textproc/jade/files/patch-CharsetRegistry.cxx
parentLong-overdue cosmetic cleanups. (diff)
Add koi8-r support to jade to solve problem with koi8-r encoding
in printed formats. SP_ENCODING=koi8-r should be passed to jade. Obtained from: ftp://ftp.ptc.spbu.ru/people/uwe/sgml/ (slightly modified) Found by: Denis Philippov Submitted by: den
Diffstat (limited to 'textproc/jade/files/patch-CharsetRegistry.cxx')
-rw-r--r--textproc/jade/files/patch-CharsetRegistry.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/textproc/jade/files/patch-CharsetRegistry.cxx b/textproc/jade/files/patch-CharsetRegistry.cxx
new file mode 100644
index 000000000000..940ba42bfb3b
--- /dev/null
+++ b/textproc/jade/files/patch-CharsetRegistry.cxx
@@ -0,0 +1,20 @@
+--- lib/CharsetRegistry.cxx.orig Sat Jul 31 17:03:07 2004
++++ lib/CharsetRegistry.cxx Sat Jul 31 17:05:46 2004
+@@ -164,6 +164,9 @@
+ static const unsigned short iso8859_9[] = {
+ #include "iso8859-9.h"
+ };
++static const unsigned short koi8_r[] = {
++#include "koi8-r.h"
++};
+ static const unsigned short iso646_jis_G0[] = {
+ #include "iso646-jis.h"
+ };
+@@ -203,6 +206,7 @@
+ { CharsetRegistry::ISO8859_7, iso8859_7 },
+ { CharsetRegistry::ISO8859_8, iso8859_8 },
+ { CharsetRegistry::ISO8859_9, iso8859_9 },
++ { CharsetRegistry::KOI8_R, koi8_r },
+ { CharsetRegistry::ISO646_JIS_G0, iso646_jis_G0 },
+ { CharsetRegistry::JIS0201, jis0201 },
+ #ifdef SP_MULTI_BYTE