Sha256: 2f58e193e4488fa071584678d197a1b01fd11e05f597117d32a72a18ccbfbb74

Contents?: true

Size: 680 Bytes

Versions: 5

Compression:

Stored size: 680 Bytes

Contents

#! /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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
controller_scaffolding-1.0.3 test/dummy/libiconv-1.13.1/libcharset/tools/all-locales
controller_scaffolding-1.0.2 test/dummy/libiconv-1.13.1/libcharset/tools/all-locales
controller_scaffolding-1.0.1 test/dummy/libiconv-1.13.1/libcharset/tools/all-locales
controller_scaffolding-1.0.0 test/dummy/libiconv-1.13.1/libcharset/tools/all-locales
controller_scaffolding-0.1.5 test/dummy/libiconv-1.13.1/libcharset/tools/all-locales