[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[screen-devel] [PATCH] Add KOI8-U support.
From: |
Valentin Nechayev |
Subject: |
[screen-devel] [PATCH] Add KOI8-U support. |
Date: |
Fri, 8 Aug 2014 07:43:37 +0300 |
---
src/ansi.h | 1 +
src/doc/screen.1 | 4 ++--
src/doc/screen.texinfo | 4 ++--
src/encoding.c | 4 +++-
src/utf8encodings/a3 | Bin 0 -> 536 bytes
5 files changed, 8 insertions(+), 5 deletions(-)
create mode 100644 src/utf8encodings/a3
diff --git a/src/ansi.h b/src/ansi.h
index 72992b4..961b9d8 100644
--- a/src/ansi.h
+++ b/src/ansi.h
@@ -133,6 +133,7 @@ enum move_t {
#define KOI8R 6
#define CP1251 7
#define GBK 20
+#define KOI8U 21
#define EUC EUC_JP
diff --git a/src/doc/screen.1 b/src/doc/screen.1
index fd5c06e..fb11f2c 100644
--- a/src/doc/screen.1
+++ b/src/doc/screen.1
@@ -1865,8 +1865,8 @@ There is also a way to select a terminal encoding
depending on
the terminal type by using the \*QKJ\*U termcap entry.
Supported encodings are eucJP, SJIS, eucKR, eucCN, Big5, GBK, KOI8-R,
-CP1251, UTF-8, ISO8859-2, ISO8859-3, ISO8859-4, ISO8859-5, ISO8859-6,
-ISO8859-7, ISO8859-8, ISO8859-9, ISO8859-10, ISO8859-15, jis.
+KOI8-U, CP1251, UTF-8, ISO8859-2, ISO8859-3, ISO8859-4, ISO8859-5,
+ISO8859-6, ISO8859-7, ISO8859-8, ISO8859-9, ISO8859-10, ISO8859-15, jis.
See also \*Qdefencoding\*U, which changes the default setting of a new
window.
diff --git a/src/doc/screen.texinfo b/src/doc/screen.texinfo
index c6ee63a..b8d78e0 100644
--- a/src/doc/screen.texinfo
+++ b/src/doc/screen.texinfo
@@ -3374,8 +3374,8 @@ the terminal type by using the @samp{KJ} termcap entry.
@xref{Special Capabiliti
Supported encodings are
@code{eucJP}, @code{SJIS}, @code{eucKR},
address@hidden, @code{Big5}, @code{GBK}, @code{KOI8-R}, @code{CP1251},
address@hidden, @code{ISO8859-2}, @code{ISO8859-3},
address@hidden, @code{Big5}, @code{GBK}, @code{KOI8-R}, @code{KOI8-U},
address@hidden, @code{UTF-8}, @code{ISO8859-2}, @code{ISO8859-3},
@code{ISO8859-4}, @code{ISO8859-5}, @code{ISO8859-6},
@code{ISO8859-7}, @code{ISO8859-8}, @code{ISO8859-9},
@code{ISO8859-10}, @code{ISO8859-15}, @code{jis}.
diff --git a/src/encoding.c b/src/encoding.c
index 86c2efd..84fff33 100644
--- a/src/encoding.c
+++ b/src/encoding.c
@@ -62,6 +62,7 @@ struct encoding {
/* big5 font: ^X */
/* KOI8-R font: 96 ! */
/* CP1251 font: 96 ? */
+/* KOI8-U font: 96 # */
struct encoding encodings[] = {
{ "C", 0, 0, 0, 0, 0 },
@@ -84,7 +85,8 @@ struct encoding encodings[] = {
{ "ISO8859-10", 0, 0x80|'V', 0, 0, 0 },
{ "ISO8859-15", 0, 0x80|'b', 0, 0, 0 },
{ "jis", 0, 0, 0, 0, "\002\004I" },
- { "GBK", "B\031BB01", 0x80|'b', 1, 1, "\031" }
+ { "GBK", "B\031BB01", 0x80|'b', 1, 1, "\031" },
+ { "KOI8-U", 0, 0x80|'#', 0, 1, 0 }
};
#ifdef UTF8
diff --git a/src/utf8encodings/a3 b/src/utf8encodings/a3
new file mode 100644
index
0000000000000000000000000000000000000000..64cf703da789532c86d45a53b58ab220c8fdf13d
GIT binary patch
literal 536
zcmV~$_gf4A9LMoD&*$M6KZH;Tb=TJ{BjJ!uIw5h%c&sO9Jsv;!3l1TKyRzqzm6?p}
address@hidden;mUhf!pe7YyeMLxciRJSWG9q<{9v(k*Wa!jxgvMiK|7RDrtWU|GO
zZLv(T1g2Ud)67SXWij2dnPEB1G(Ua|5U^ZwEss2B6tgVIY)3eA91+ZQBs0%3l=%)X
z3kb5%8O<address@hidden&XlYFJILLOF{hgIs$YGts-GAOV<thK(Zvwp0%
z{%lZyjW&QyHjqLa#AX{zkqu#sO0iX9n`N?HWhhozcGxg>address@hidden))%FjL<
z&3+0vpza)0Lk_7Chn2(;C2&+tIHryqS7T176DQ^3l$vu|EjXi=oK+&{)Qa<J%>}jL
zqEfk}wp>;_uBbg%)q!hj%5}waLtVM46mF>*x0TEtb>ptw+*4=ns|ycQpN9(Jk;?N}
zHF=^?o~jbh6vJ~><b{lv3geZ+d94WEs48z2$vai!y{hv;HTb9od{Pvj70nkp_$nvg
gRGAW0;address@hidden(H)address@hidden
literal 0
HcmV?d00001
--
2.0.2
- [screen-devel] [PATCH] Add KOI8-U support.,
Valentin Nechayev <=