From fcbf63e62c627deae76c1b8cb8c0876c536ed811 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 16 Mar 2020 18:49:26 +0900 Subject: Fresh start --- jni/iconv/libcharset/tools/all-locales | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 jni/iconv/libcharset/tools/all-locales (limited to 'jni/iconv/libcharset/tools/all-locales') diff --git a/jni/iconv/libcharset/tools/all-locales b/jni/iconv/libcharset/tools/all-locales new file mode 100755 index 0000000..54283b8 --- /dev/null +++ b/jni/iconv/libcharset/tools/all-locales @@ -0,0 +1,27 @@ +#! /bin/sh +# Prints the list of all locale names, one per line. + +locale -a +test $? = 0 && exit 0 + +host=`/bin/sh ../build-aux/config.guess` +host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + +case "$host_os" in + sunos* | solaris*) + cd /usr/lib/locale && ls -1 + ;; + freebsd*) + cd /usr/share/locale && ls -1 + ;; + darwin* | openbsd*) + echo C + cd /usr/share/locale && ls -1 */LC_CTYPE | sed -e 's,/LC_CTYPE$,,' + ;; + *) + echo "Don't know how to determine list of locales on $host_os" 1>&2 + exit 1 + ;; +esac -- cgit v1.2.3-70-g09d2