about summary refs log tree commit diff
path: root/iconvdata
diff options
context:
space:
mode:
Diffstat (limited to 'iconvdata')
-rw-r--r--iconvdata/Makefile8
-rw-r--r--iconvdata/gconv-modules8
-rw-r--r--iconvdata/ibm866nav.c29
-rwxr-xr-xiconvdata/tst-tables.sh3
4 files changed, 42 insertions, 6 deletions
diff --git a/iconvdata/Makefile b/iconvdata/Makefile
index 9584d4d5ed..5e96ef5203 100644
--- a/iconvdata/Makefile
+++ b/iconvdata/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1997-2002, 2003 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
 # The GNU C Library is free software; you can redistribute it and/or
@@ -51,7 +51,7 @@ modules	:= ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5		 \
 	   GB18030 ISO-2022-CN-EXT VISCII GBBIG5 CP10007 KOI8-T		 \
 	   GEORGIAN-PS GEORGIAN-ACADEMY ISO-IR-209 MAC-SAMI ARMSCII-8	 \
 	   TCVN5712-1 libJISX0213 EUC-JISX0213 SHIFT_JISX0213		 \
-	   ISO-2022-JP-3 TSCII
+	   ISO-2022-JP-3 TSCII IBM866NAV
 
 modules.so := $(addsuffix .so, $(modules))
 
@@ -167,7 +167,7 @@ distribute := gconv-modules extra-module.mk gap.awk gaptab.awk gconv.map    \
 	      mac-sami.c ibm1160.c ibm1160.h ibm1161.c ibm1161.h	    \
 	      ibm1163.c ibm1163.h ibm1164.c ibm1164.h jisx0213.c jisx0213.h \
 	      euc-jisx0213.c shift_jisx0213.c iso-2022-jp-3.c		    \
-	      tcvn5712-1.c armscii-8.c tscii.c
+	      tcvn5712-1.c armscii-8.c tscii.c ibm866nav.c
 
 # We build the transformation modules only when we build shared libs.
 ifeq (yes,$(build-shared))
@@ -208,7 +208,7 @@ gen-8bit-gap-modules := koi8-r latin-greek latin-greek-1 ibm256 ibm273	   \
 			iso8859-13 iso8859-14 iso8859-15 mac-uk sami-ws2   \
 			iso-ir-197 tis-620 koi8-u ibm874 cp10007 koi8-t	   \
 			georgian-ps georgian-academy iso-ir-209 mac-sami   \
-			iso8859-11
+			iso8859-11 ibm866nav
 
 gen-special-modules := iso8859-7jp
 
diff --git a/iconvdata/gconv-modules b/iconvdata/gconv-modules
index 68df77a2fc..7a08baad46 100644
--- a/iconvdata/gconv-modules
+++ b/iconvdata/gconv-modules
@@ -1,5 +1,5 @@
 # GNU libc iconv configuration.
-# Copyright (C) 1997-1999, 2000-2002 Free Software Foundation, Inc.
+# Copyright (C) 1997-1999, 2000-2002, 2003 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 #
 
@@ -824,6 +824,12 @@ module	IBM866//		INTERNAL		IBM866		1
 module	INTERNAL		IBM866//		IBM866		1
 
 #	from			to			module		cost
+alias	CP866NAV//		IBM866NAV//
+alias	866NAV//		IBM866NAV//
+module	IBM866NAV//		INTERNAL		IBM866NAV	1
+module	INTERNAL		IBM866NAV//		IBM866NAV	1
+
+#	from			to			module		cost
 alias	CP868//			IBM868//
 alias	CP-AR//			IBM868//
 alias	CSIBM868//		IBM868//
diff --git a/iconvdata/ibm866nav.c b/iconvdata/ibm866nav.c
new file mode 100644
index 0000000000..5940827bdb
--- /dev/null
+++ b/iconvdata/ibm866nav.c
@@ -0,0 +1,29 @@
+/* Conversion from and to IBM866NAV.
+   Copyright (C) 2003 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+   Contributed by Ulrich Drepper <drepper@cygnus.com>, 2003.
+
+   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>
+
+/* Get the conversion table.  */
+#define TABLES <ibm866nav.h>
+
+#define CHARSET_NAME	"IBM866NAV//"
+#define HAS_HOLES	0	/* All 256 character are defined.  */
+
+#include <8bit-gap.c>
diff --git a/iconvdata/tst-tables.sh b/iconvdata/tst-tables.sh
index e333a5ad36..094e3bea74 100755
--- a/iconvdata/tst-tables.sh
+++ b/iconvdata/tst-tables.sh
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 # Contributed by Bruno Haible <haible@clisp.cons.org>, 2000.
 #
@@ -127,6 +127,7 @@ cat <<EOF |
   IBM864
   IBM865
   IBM866
+  IBM866NAV
   IBM868
   IBM869
   IBM870