all-locales
来自「linux 支持 NTFS-3G.linux-arm ntfs 文件体统的支持」· 代码 · 共 27 行
TXT
27 行
#! /bin/sh# Prints the list of all locale names, one per line.locale -atest $? = 0 && exit 0host=`/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*) 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
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?