diff options
author | Amadeusz Sławiński (amade) <amade@asmblr.net> | 2011-05-08 21:56:45 +0200 |
---|---|---|
committer | Amadeusz Sławiński <amade@asmblr.net> | 2014-07-24 11:50:46 +0200 |
commit | be239714da7ab007ff917bc551cd0fdf3e735107 (patch) | |
tree | 280403a0a4e6a3f41541f28733c08a4bffeac165 | |
parent | 390abd006d13979bf6065c8f684fc25f9e77a1fc (diff) | |
download | screen-be239714da7ab007ff917bc551cd0fdf3e735107.tar.gz |
add KOI8-U support
Valentin Nechayev
http://lists.gnu.org/archive/html/screen-devel/2011-05/msg00003.html
-rw-r--r-- | src/ansi.h | 1 | ||||
-rw-r--r-- | src/doc/screen.1 | 5 | ||||
-rw-r--r-- | src/doc/screen.texinfo | 3 | ||||
-rw-r--r-- | src/encoding.c | 4 | ||||
-rw-r--r-- | src/utf8encodings/a3 | bin | 0 -> 536 bytes |
5 files changed, 9 insertions, 4 deletions
@@ -130,6 +130,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..40b8c7a 100644 --- a/src/doc/screen.1 +++ b/src/doc/screen.1 @@ -1864,8 +1864,9 @@ needed as screen uses the locale setting to detect the encoding. 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, +Supported encodings are eucJP, SJIS, eucKR, eucCN, Big5, GBK, +KOI8-R, 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 diff --git a/src/doc/screen.texinfo b/src/doc/screen.texinfo index c6ee63a..d44b0db 100644 --- a/src/doc/screen.texinfo +++ b/src/doc/screen.texinfo @@ -3374,7 +3374,8 @@ the terminal type by using the @samp{KJ} termcap entry. @xref{Special Capabiliti Supported encodings are @code{eucJP}, @code{SJIS}, @code{eucKR}, -@code{eucCN}, @code{Big5}, @code{GBK}, @code{KOI8-R}, @code{CP1251}, +@code{eucCN}, @code{Big5}, @code{GBK}, +@code{KOI8-R}, @code{KOI8-U}, @code{CP1251}, @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}, diff --git a/src/encoding.c b/src/encoding.c index cc202ec..49c2bbb 100644 --- a/src/encoding.c +++ b/src/encoding.c @@ -45,6 +45,7 @@ struct encoding { /* big5 font: ^X */ /* KOI8-R font: 96 ! */ +/* KOI8-U font: 96 # */ /* CP1251 font: 96 ? */ struct encoding encodings[] = { @@ -68,7 +69,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 } }; diff --git a/src/utf8encodings/a3 b/src/utf8encodings/a3 Binary files differnew file mode 100644 index 0000000..85ce894 --- /dev/null +++ b/src/utf8encodings/a3 |