aboutsummaryrefslogtreecommitdiff
path: root/iconvdata
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-08-03 18:44:28 +0000
committerUlrich Drepper <drepper@redhat.com>2001-08-03 18:44:28 +0000
commitfe25bb96fc54d460f8ec85bad2028137caef76e8 (patch)
tree993a29a3f4f599e1f20bcfb21c0716b623953eed /iconvdata
parentd38be2973917a9dd5a74bbf71eb98cc99ee7b16b (diff)
downloadglibc-fe25bb96fc54d460f8ec85bad2028137caef76e8.tar
glibc-fe25bb96fc54d460f8ec85bad2028137caef76e8.tar.gz
glibc-fe25bb96fc54d460f8ec85bad2028137caef76e8.tar.bz2
glibc-fe25bb96fc54d460f8ec85bad2028137caef76e8.zip
Update.
* iconvdata/Makefile: Add rules to build KOI8-T module. * iconvdata/koi8-t.c: New file. * iconvdata/gconv-modules: Add entries for KOI8-T.
Diffstat (limited to 'iconvdata')
-rw-r--r--iconvdata/Makefile7
-rw-r--r--iconvdata/gconv-modules4
-rw-r--r--iconvdata/koi8-t.c29
3 files changed, 37 insertions, 3 deletions
diff --git a/iconvdata/Makefile b/iconvdata/Makefile
index 4b37c74674..53aeb2426c 100644
--- a/iconvdata/Makefile
+++ b/iconvdata/Makefile
@@ -47,7 +47,7 @@ modules := ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 \
ISO_5428 ISO_10367-BOX MAC-IS MAC-UK NATS-DANO NATS-SEFI \
SAMI-WS2 ISO-IR-197 TIS-620 KOI8-U GBK ISIRI-3342 GBGBK \
ISO-2022-CN libISOIR165 UTF-16 UNICODE UTF-32 UTF-7 BIG5HKSCS \
- GB18030 ISO-2022-CN-EXT VISCII GBBIG5 CP10007
+ GB18030 ISO-2022-CN-EXT VISCII GBBIG5 CP10007 KOI8-T
modules.so := $(addsuffix .so, $(modules))
@@ -137,7 +137,8 @@ distribute := gconv-modules extra-module.mk gap.awk gaptab.awk \
isiri-3342.c isiri-3342.h gbgbk.c iso-2022-cn.c cns11643l2.h \
iso8859-16.c utf-16.c unicode.c utf-32.c utf-7.c big5hkscs.c \
iso-ir-165.c iso-ir-165.h gb18030.c iso-2022-cn-ext.c \
- ibm932.c ibm932.h ibm943.c ibm943.h gbbig5.c cp10007.c
+ ibm932.c ibm932.h ibm943.c ibm943.h gbbig5.c cp10007.c \
+ koi8-t.c
# We build the transformation modules only when we build shared libs.
ifeq (yes,$(build-shared))
@@ -176,7 +177,7 @@ gen-8bit-gap-modules := koi8-r latin-greek latin-greek-1 ibm256 ibm273 \
inis-cyrillic iso_2033 iso_5427 iso_5427-ext \
iso_5428 iso_10367-box mac-is nats-dano nats-sefi \
iso8859-13 iso8859-14 iso8859-15 mac-uk sami-ws2 \
- iso-ir-197 tis-620 koi8-u ibm874 cp10007
+ iso-ir-197 tis-620 koi8-u ibm874 cp10007 koi8-t
gen-special-modules := iso8859-7jp
diff --git a/iconvdata/gconv-modules b/iconvdata/gconv-modules
index afff6a7836..54692de455 100644
--- a/iconvdata/gconv-modules
+++ b/iconvdata/gconv-modules
@@ -1430,3 +1430,7 @@ module INTERNAL GB18030// GB18030 1
# from to module cost
module VISCII// INTERNAL VISCII 1
module INTERNAL VISCII// VISCII 1
+
+# from to module cost
+module KOI8-T// INTERNAL KOI8-T 1
+module INTERNAL KOI8-T// KOI8-T 1
diff --git a/iconvdata/koi8-t.c b/iconvdata/koi8-t.c
new file mode 100644
index 0000000000..04341bfe59
--- /dev/null
+++ b/iconvdata/koi8-t.c
@@ -0,0 +1,29 @@
+/* Conversion from and to KOI8-T.
+ Copyright (C) 2001 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+ Contributed by Ulrich Drepper <drepper@cygnus.com>, 2001.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+#include <stdint.h>
+
+/* Specify the conversion table. */
+#define TABLES <koi8-t.h>
+
+#define CHARSET_NAME "KOI8-T//"
+#define HAS_HOLES 1 /* Not all 256 character are defined. */
+
+#include <8bit-gap.c>