diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2001-02-14 23:35:28 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2001-02-14 23:35:28 +0000 |
commit | 25db60bb28dfeb3fced37723f2968511662f1723 (patch) | |
tree | 026ec33f5c5195c88019af8e7828d7da33ff2c01 /contrib | |
parent | ccd5c1a264eba6e4d7f6f0c6a911f495bf5c9727 (diff) |
iconv-hook.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/Makefile.in | 17 | ||||
-rw-r--r-- | contrib/iconv/README | 15 | ||||
-rw-r--r-- | contrib/iconv/iconv.aix-3.2.5.rc | 2 | ||||
-rw-r--r-- | contrib/iconv/iconv.aix-4.1.5.rc | 13 | ||||
-rw-r--r-- | contrib/iconv/iconv.aix-4.2.0.rc | 18 | ||||
-rw-r--r-- | contrib/iconv/iconv.aix-4.3.2.rc | 23 | ||||
-rw-r--r-- | contrib/iconv/iconv.freebsd-3.3.rc | 6 | ||||
-rw-r--r-- | contrib/iconv/iconv.glibc-2.1.3.rc | 1 | ||||
-rw-r--r-- | contrib/iconv/iconv.glibc-2.1.90.rc | 1 | ||||
-rw-r--r-- | contrib/iconv/iconv.hpux-10.01.rc | 15 | ||||
-rw-r--r-- | contrib/iconv/iconv.hpux-10.20.rc | 15 | ||||
-rw-r--r-- | contrib/iconv/iconv.hpux-11.00.rc | 21 | ||||
-rw-r--r-- | contrib/iconv/iconv.irix-6.5.rc | 9 | ||||
-rw-r--r-- | contrib/iconv/iconv.osf1-4.0a.rc | 3 | ||||
-rw-r--r-- | contrib/iconv/iconv.osf1-4.0d.rc | 4 | ||||
-rw-r--r-- | contrib/iconv/iconv.solaris-2.4.rc | 1 | ||||
-rw-r--r-- | contrib/iconv/iconv.solaris-2.5.1.rc | 1 | ||||
-rw-r--r-- | contrib/iconv/iconv.solaris-2.6-cjk.rc | 11 | ||||
-rw-r--r-- | contrib/iconv/iconv.solaris-2.6.rc | 6 | ||||
-rw-r--r-- | contrib/iconv/iconv.solaris-2.7.rc | 12 | ||||
-rwxr-xr-x | contrib/iconv/make.sh | 25 |
21 files changed, 217 insertions, 2 deletions
diff --git a/contrib/Makefile.in b/contrib/Makefile.in index 94b41635..2c339d36 100644 --- a/contrib/Makefile.in +++ b/contrib/Makefile.in @@ -28,6 +28,8 @@ DISTFILES= Makefile.in language.txt language50.txt \ patch.slang-1.2.2.keypad.1 \ $(SAMPLES) +ICONV_DISTFILES=README make.sh + all clean: distclean: @@ -36,10 +38,13 @@ distclean: check: install: - $(top_srcdir)/mkinstalldirs $(DESTDIR)$(docdir)/samples + $(top_srcdir)/mkinstalldirs $(DESTDIR)$(docdir)/samples $(DESTDIR)$(docdir)/samples/iconv for f in $(SAMPLES) ; do \ $(INSTALL) -m 644 $(srcdir)/$$f $(DESTDIR)$(docdir)/samples ; \ done + for f in $(srcdir)/iconv/*.rc ; do \ + $(INSTALL) -m 644 $$f $(DESTDIR)$(docdir)/samples/iconv ; \ + done # Nothing needs to be done - uninstall in doc removes samples as well. # This is just so make uninstall doesn't fail. @@ -57,4 +62,12 @@ dist distdir: Makefile $(DISTFILES) ln $(srcdir)/$$file $(distdir) 2> /dev/null \ || cp -p $(srcdir)/$$file $(distdir); \ done - + mkdir -p $(distdir)/iconv + for file in $(ICONV_DISTFILES) ; do + ln $(srcdir)/iconv/$$file $(distdir)/iconv 2> /dev/null \ + || cp -p $(srcdir)/iconv/$$file $(distdir)/iconv; \ + done + for file in $(srcdir)/iconv/*.rc ; do + ln $$file $(distdir)/iconv 2> /dev/null \ + || cp -p $$file $(distdir)/iconv ; \ + done diff --git a/contrib/iconv/README b/contrib/iconv/README new file mode 100644 index 00000000..1a3135c6 --- /dev/null +++ b/contrib/iconv/README @@ -0,0 +1,15 @@ +This directory contains sample collections of iconv-hooks for +various platforms. The files have been auto-generated from the +source code of Bruno Haible's libiconv implementation, version 1.5.1. + +libiconv is available from <http://clisp.cons.org/~haible/packages-libiconv.html>. + +If you want to re-generate the files from a newer version of +libiconv, just type: + + rm -f *.rc + ./make.sh <top-level iconv directory> + +Note, however, that make.sh isn't guaranteed to run on any system +but the one used for generating these files. + diff --git a/contrib/iconv/iconv.aix-3.2.5.rc b/contrib/iconv/iconv.aix-3.2.5.rc new file mode 100644 index 00000000..45fe6320 --- /dev/null +++ b/contrib/iconv/iconv.aix-3.2.5.rc @@ -0,0 +1,2 @@ +iconv-hook CP850 IBM-850 +iconv-hook ISO-8859-1 ISO8859-1 diff --git a/contrib/iconv/iconv.aix-4.1.5.rc b/contrib/iconv/iconv.aix-4.1.5.rc new file mode 100644 index 00000000..6481a25b --- /dev/null +++ b/contrib/iconv/iconv.aix-4.1.5.rc @@ -0,0 +1,13 @@ +iconv-hook CP1046 IBM-1046 +iconv-hook CP850 IBM-850 +iconv-hook CP856 IBM-856 +iconv-hook CP932 IBM-932 +iconv-hook EUC-CN IBM-eucCN +iconv-hook EUC-JP IBM-eucJP +iconv-hook EUC-KR IBM-eucKR +iconv-hook EUC-TW IBM-eucTW +iconv-hook ISO-8859-1 ISO8859-1 +iconv-hook ISO-8859-2 ISO8859-2 +iconv-hook ISO-8859-5 ISO8859-5 +iconv-hook ISO-8859-6 ISO8859-6 +iconv-hook ISO-8859-8 ISO8859-8 diff --git a/contrib/iconv/iconv.aix-4.2.0.rc b/contrib/iconv/iconv.aix-4.2.0.rc new file mode 100644 index 00000000..aeb53274 --- /dev/null +++ b/contrib/iconv/iconv.aix-4.2.0.rc @@ -0,0 +1,18 @@ +iconv-hook BIG5 big5 +iconv-hook CP1046 IBM-1046 +iconv-hook CP850 IBM-850 +iconv-hook CP856 IBM-856 +iconv-hook CP922 IBM-922 +iconv-hook CP932 IBM-932 +iconv-hook EUC-CN IBM-eucCN +iconv-hook EUC-JP IBM-eucJP +iconv-hook EUC-KR IBM-eucKR +iconv-hook EUC-TW IBM-eucTW +iconv-hook ISO-8859-13 IBM-921 +iconv-hook ISO-8859-1 ISO8859-1 +iconv-hook ISO-8859-2 ISO8859-2 +iconv-hook ISO-8859-5 ISO8859-5 +iconv-hook ISO-8859-6 ISO8859-6 +iconv-hook ISO-8859-7 ISO8859-7 +iconv-hook ISO-8859-8 ISO8859-8 +iconv-hook ISO-8859-9 ISO8859-9 diff --git a/contrib/iconv/iconv.aix-4.3.2.rc b/contrib/iconv/iconv.aix-4.3.2.rc new file mode 100644 index 00000000..f0aa365c --- /dev/null +++ b/contrib/iconv/iconv.aix-4.3.2.rc @@ -0,0 +1,23 @@ +iconv-hook BIG5 big5 +iconv-hook CP1046 IBM-1046 +iconv-hook CP1124 IBM-1124 +iconv-hook CP1129 IBM-1129 +iconv-hook CP1252 IBM-1252 +iconv-hook CP850 IBM-850 +iconv-hook CP856 IBM-856 +iconv-hook CP922 IBM-922 +iconv-hook CP932 IBM-932 +iconv-hook CP943 IBM-943 +iconv-hook EUC-CN IBM-eucCN +iconv-hook EUC-JP IBM-eucJP +iconv-hook EUC-KR IBM-eucKR +iconv-hook EUC-TW IBM-eucTW +iconv-hook ISO-8859-13 IBM-921 +iconv-hook ISO-8859-15 ISO8859-15 +iconv-hook ISO-8859-1 ISO8859-1 +iconv-hook ISO-8859-2 ISO8859-2 +iconv-hook ISO-8859-5 ISO8859-5 +iconv-hook ISO-8859-6 ISO8859-6 +iconv-hook ISO-8859-7 ISO8859-7 +iconv-hook ISO-8859-8 ISO8859-8 +iconv-hook ISO-8859-9 ISO8859-9 diff --git a/contrib/iconv/iconv.freebsd-3.3.rc b/contrib/iconv/iconv.freebsd-3.3.rc new file mode 100644 index 00000000..24e8bbbd --- /dev/null +++ b/contrib/iconv/iconv.freebsd-3.3.rc @@ -0,0 +1,6 @@ +iconv-hook ASCII <error> +iconv-hook CP866 <error> +iconv-hook ISO-8859-15 <error> +iconv-hook ISO-8859-1 <error> +iconv-hook ISO-8859-2 <error> +iconv-hook KOI8-R <error> diff --git a/contrib/iconv/iconv.glibc-2.1.3.rc b/contrib/iconv/iconv.glibc-2.1.3.rc new file mode 100644 index 00000000..40032917 --- /dev/null +++ b/contrib/iconv/iconv.glibc-2.1.3.rc @@ -0,0 +1 @@ +iconv-hook ISO-8859-1 ANSI_X3.4-1968 diff --git a/contrib/iconv/iconv.glibc-2.1.90.rc b/contrib/iconv/iconv.glibc-2.1.90.rc new file mode 100644 index 00000000..3ba121e1 --- /dev/null +++ b/contrib/iconv/iconv.glibc-2.1.90.rc @@ -0,0 +1 @@ +iconv-hook ASCII ANSI_X3.4-1968 diff --git a/contrib/iconv/iconv.hpux-10.01.rc b/contrib/iconv/iconv.hpux-10.01.rc new file mode 100644 index 00000000..adf5e193 --- /dev/null +++ b/contrib/iconv/iconv.hpux-10.01.rc @@ -0,0 +1,15 @@ +iconv-hook EUC-CN hp15CN +iconv-hook EUC-TW eucTW +iconv-hook HP-ARABIC8 arabic8 +iconv-hook HP-GREEK8 greek8 +iconv-hook HP-HEBREW8 hebrew8 +iconv-hook HP-ROMAN8 roman8 +iconv-hook HP-TURKISH8 turkish8 +iconv-hook ISO-8859-1 iso88591 +iconv-hook ISO-8859-2 iso88592 +iconv-hook ISO-8859-5 iso88595 +iconv-hook ISO-8859-6 iso88596 +iconv-hook ISO-8859-7 iso88597 +iconv-hook ISO-8859-8 iso88598 +iconv-hook ISO-8859-9 iso88599 +iconv-hook TIS-620 tis620 diff --git a/contrib/iconv/iconv.hpux-10.20.rc b/contrib/iconv/iconv.hpux-10.20.rc new file mode 100644 index 00000000..38bc1a13 --- /dev/null +++ b/contrib/iconv/iconv.hpux-10.20.rc @@ -0,0 +1,15 @@ +iconv-hook HP-ARABIC8 arabic8 +iconv-hook HP-GREEK8 greek8 +iconv-hook HP-HEBREW8 hebrew8 +iconv-hook HP-ROMAN8 roman8 +iconv-hook HP-TURKISH8 turkish8 +iconv-hook ISO-8859-15 iso885915 +iconv-hook ISO-8859-1 iso88591 +iconv-hook ISO-8859-2 iso88592 +iconv-hook ISO-8859-5 iso88595 +iconv-hook ISO-8859-6 iso88596 +iconv-hook ISO-8859-7 iso88597 +iconv-hook ISO-8859-8 iso88598 +iconv-hook ISO-8859-9 iso88599 +iconv-hook TIS-620 tis620 +iconv-hook UTF-8 utf8 diff --git a/contrib/iconv/iconv.hpux-11.00.rc b/contrib/iconv/iconv.hpux-11.00.rc new file mode 100644 index 00000000..81bda2ff --- /dev/null +++ b/contrib/iconv/iconv.hpux-11.00.rc @@ -0,0 +1,21 @@ +iconv-hook BIG5 big5 +iconv-hook EUC-CN hp15CN +iconv-hook EUC-JP eucJP +iconv-hook EUC-KR eucKR +iconv-hook EUC-TW eucTW +iconv-hook HP-ARABIC8 arabic8 +iconv-hook HP-GREEK8 greek8 +iconv-hook HP-HEBREW8 hebrew8 +iconv-hook HP-KANA8 kana8 +iconv-hook HP-ROMAN8 roman8 +iconv-hook HP-TURKISH8 turkish8 +iconv-hook ISO-8859-15 iso885915 +iconv-hook ISO-8859-1 iso88591 +iconv-hook ISO-8859-2 iso88592 +iconv-hook ISO-8859-5 iso88595 +iconv-hook ISO-8859-6 iso88596 +iconv-hook ISO-8859-7 iso88597 +iconv-hook ISO-8859-8 iso88598 +iconv-hook ISO-8859-9 iso88599 +iconv-hook TIS-620 tis620 +iconv-hook UTF-8 utf8 diff --git a/contrib/iconv/iconv.irix-6.5.rc b/contrib/iconv/iconv.irix-6.5.rc new file mode 100644 index 00000000..4cdba041 --- /dev/null +++ b/contrib/iconv/iconv.irix-6.5.rc @@ -0,0 +1,9 @@ +iconv-hook EUC-CN eucCN +iconv-hook EUC-JP eucJP +iconv-hook EUC-KR eucKR +iconv-hook EUC-TW eucTW +iconv-hook ISO-8859-1 ISO8859-1 +iconv-hook ISO-8859-2 ISO8859-2 +iconv-hook ISO-8859-5 ISO8859-5 +iconv-hook ISO-8859-7 ISO8859-7 +iconv-hook ISO-8859-9 ISO8859-9 diff --git a/contrib/iconv/iconv.osf1-4.0a.rc b/contrib/iconv/iconv.osf1-4.0a.rc new file mode 100644 index 00000000..3e4bbddf --- /dev/null +++ b/contrib/iconv/iconv.osf1-4.0a.rc @@ -0,0 +1,3 @@ +iconv-hook ISO-8859-1 ISO8859-1 +iconv-hook ISO-8859-7 ISO8859-7 +iconv-hook ISO-8859-9 ISO8859-9 diff --git a/contrib/iconv/iconv.osf1-4.0d.rc b/contrib/iconv/iconv.osf1-4.0d.rc new file mode 100644 index 00000000..837b02f8 --- /dev/null +++ b/contrib/iconv/iconv.osf1-4.0d.rc @@ -0,0 +1,4 @@ +iconv-hook CP850 cp850 +iconv-hook ISO-8859-1 ISO8859-1 +iconv-hook ISO-8859-7 ISO8859-7 +iconv-hook ISO-8859-9 ISO8859-9 diff --git a/contrib/iconv/iconv.solaris-2.4.rc b/contrib/iconv/iconv.solaris-2.4.rc new file mode 100644 index 00000000..7981bf04 --- /dev/null +++ b/contrib/iconv/iconv.solaris-2.4.rc @@ -0,0 +1 @@ +iconv-hook bug diff --git a/contrib/iconv/iconv.solaris-2.5.1.rc b/contrib/iconv/iconv.solaris-2.5.1.rc new file mode 100644 index 00000000..673e46b8 --- /dev/null +++ b/contrib/iconv/iconv.solaris-2.5.1.rc @@ -0,0 +1 @@ +iconv-hook ISO-8859-1 ISO8859-1 diff --git a/contrib/iconv/iconv.solaris-2.6-cjk.rc b/contrib/iconv/iconv.solaris-2.6-cjk.rc new file mode 100644 index 00000000..d0cb0b2c --- /dev/null +++ b/contrib/iconv/iconv.solaris-2.6-cjk.rc @@ -0,0 +1,11 @@ +iconv-hook EUC-CN gb2312 +iconv-hook EUC-JP eucJP +iconv-hook EUC-KR 5601 +iconv-hook EUC-TW cns11643 +iconv-hook ISO-8859-1 ISO8859-1 +iconv-hook ISO-8859-2 ISO8859-2 +iconv-hook ISO-8859-4 ISO8859-4 +iconv-hook ISO-8859-5 ISO8859-5 +iconv-hook ISO-8859-7 ISO8859-7 +iconv-hook ISO-8859-9 ISO8859-9 +iconv-hook Shift_JIS PCK diff --git a/contrib/iconv/iconv.solaris-2.6.rc b/contrib/iconv/iconv.solaris-2.6.rc new file mode 100644 index 00000000..8ecdb4d5 --- /dev/null +++ b/contrib/iconv/iconv.solaris-2.6.rc @@ -0,0 +1,6 @@ +iconv-hook ISO-8859-1 ISO8859-1 +iconv-hook ISO-8859-2 ISO8859-2 +iconv-hook ISO-8859-4 ISO8859-4 +iconv-hook ISO-8859-5 ISO8859-5 +iconv-hook ISO-8859-7 ISO8859-7 +iconv-hook ISO-8859-9 ISO8859-9 diff --git a/contrib/iconv/iconv.solaris-2.7.rc b/contrib/iconv/iconv.solaris-2.7.rc new file mode 100644 index 00000000..e4850b15 --- /dev/null +++ b/contrib/iconv/iconv.solaris-2.7.rc @@ -0,0 +1,12 @@ +iconv-hook ASCII 646 +iconv-hook ISO-8859-15 ISO8859-15 +iconv-hook ISO-8859-1 ISO8859-1 +iconv-hook ISO-8859-2 ISO8859-2 +iconv-hook ISO-8859-4 ISO8859-4 +iconv-hook ISO-8859-5 ISO8859-5 +iconv-hook ISO-8859-6 ISO8859-6 +iconv-hook ISO-8859-7 ISO8859-7 +iconv-hook ISO-8859-8 ISO8859-8 +iconv-hook ISO-8859-9 ISO8859-9 +iconv-hook KOI8-R koi8-r +iconv-hook TIS-620 TIS620.2533 diff --git a/contrib/iconv/make.sh b/contrib/iconv/make.sh new file mode 100755 index 00000000..777d0026 --- /dev/null +++ b/contrib/iconv/make.sh @@ -0,0 +1,25 @@ +#!/bin/sh -- + +# +# Create sample configuration files from the tables contained with libiconv. +# Copyright (C) 2001 Thomas Roessler <roessler@does-not-exist.org> +# +# This ugly shell script is free software; you can distribute and/or modify +# it under the terms of the GNU General Public License version 2 or later. +# + +LIBICONV="$1" +test -d $LIBICONV/libcharset/tools || { + echo "Sorry, I can't find libiconv's source!" >&2 ; + exit 1 ; +} + +for f in $LIBICONV/libcharset/tools/* ; do + rm -f tmp.rc. + ( head -3 $f | grep -q 'locale name.*locale charmap.*locale_charset' ) && ( + sed '1,/^$/d' $f | awk '($4 != $3) { printf ("iconv-hook %s %s\n", $4, $3); }' | \ + sed -e 's/^iconv-hook SJIS /iconv-hook Shift_JIS /gi' | + sort -u > tmp.rc ) + test -s tmp.rc && mv tmp.rc iconv.`basename $f`.rc + rm -f tmp.rc +done |