📄 config.charset
字号:
#! /bin/sh# Output a system dependent table of character encoding aliases.## Copyright (C) 2000-2004 Free Software Foundation, Inc.## This program is free software; you can redistribute it and/or modify it# under the terms of the GNU Library General Public License as published# by the Free Software Foundation; either version 2, or (at your option)# any later version.## This program 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# Library General Public License for more details.## You should have received a copy of the GNU Library General Public# License along with this program; if not, write to the Free Software# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,# USA.## The table consists of lines of the form# ALIAS CANONICAL## ALIAS is the (system dependent) result of "nl_langinfo (CODESET)".# ALIAS is compared in a case sensitive way.## CANONICAL is the GNU canonical name for this character encoding.# It must be an encoding supported by libiconv. Support by GNU libc is# also desirable. CANONICAL is case insensitive. Usually an upper case# MIME charset name is preferred.# The current list of GNU canonical charset names is as follows.## name MIME? used by which systems# ASCII, ANSI_X3.4-1968 glibc solaris freebsd darwin# ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd darwin# ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd darwin# ISO-8859-3 Y glibc solaris# ISO-8859-4 Y osf solaris freebsd darwin# ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd darwin# ISO-8859-6 Y glibc aix hpux solaris# ISO-8859-7 Y glibc aix hpux irix osf solaris darwin# ISO-8859-8 Y glibc aix hpux osf solaris# ISO-8859-9 Y glibc aix hpux irix osf solaris darwin# ISO-8859-13 glibc darwin# ISO-8859-14 glibc# ISO-8859-15 glibc aix osf solaris freebsd darwin# KOI8-R Y glibc solaris freebsd darwin# KOI8-U Y glibc freebsd darwin# KOI8-T glibc# CP437 dos# CP775 dos# CP850 aix osf dos# CP852 dos# CP855 dos# CP856 aix# CP857 dos# CP861 dos# CP862 dos# CP864 dos# CP865 dos# CP866 freebsd darwin dos# CP869 dos# CP874 woe32 dos# CP922 aix# CP932 aix woe32 dos# CP943 aix# CP949 osf woe32 dos# CP950 woe32 dos# CP1046 aix# CP1124 aix# CP1125 dos# CP1129 aix# CP1250 woe32# CP1251 glibc solaris darwin woe32# CP1252 aix woe32# CP1253 woe32# CP1254 woe32# CP1255 glibc woe32# CP1256 woe32# CP1257 woe32# GB2312 Y glibc aix hpux irix solaris freebsd darwin# EUC-JP Y glibc aix hpux irix osf solaris freebsd darwin# EUC-KR Y glibc aix hpux irix osf solaris freebsd darwin# EUC-TW glibc aix hpux irix osf solaris# BIG5 Y glibc aix hpux osf solaris freebsd darwin# BIG5-HKSCS glibc solaris# GBK glibc aix osf solaris woe32 dos# GB18030 glibc solaris# SHIFT_JIS Y hpux osf solaris freebsd darwin# JOHAB glibc solaris woe32# TIS-620 glibc aix hpux osf solaris# VISCII Y glibc# TCVN5712-1 glibc# GEORGIAN-PS glibc# HP-ROMAN8 hpux# HP-ARABIC8 hpux# HP-GREEK8 hpux# HP-HEBREW8 hpux# HP-TURKISH8 hpux# HP-KANA8 hpux# DEC-KANJI osf# DEC-HANYU osf# UTF-8 Y glibc aix hpux osf solaris darwin## Note: Names which are not marked as being a MIME name should not be used in# Internet protocols for information interchange (mail, news, etc.).## Note: ASCII and ANSI_X3.4-1968 are synonymous canonical names. Applications# must understand both names and treat them as equivalent.## The first argument passed to this file is the canonical host specification,# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM# or# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEMhost="$1"os=`echo "$host" | sed -e 's/^[^-]*-[^-]*-\(.*\)$/\1/'`echo "# This file contains a table of character encoding aliases,"echo "# suitable for operating system '${os}'."echo "# It was automatically generated from config.charset."# List of references, updated during installation:echo "# Packages using this file: "case "$os" in linux-gnulibc1*) # Linux libc5 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. echo "C ASCII" echo "POSIX ASCII" for l in af af_ZA ca ca_ES da da_DK de de_AT de_BE de_CH de_DE de_LU \ en en_AU en_BW en_CA en_DK en_GB en_IE en_NZ en_US en_ZA \ en_ZW es es_AR es_BO es_CL es_CO es_DO es_EC es_ES es_GT \ es_HN es_MX es_PA es_PE es_PY es_SV es_US es_UY es_VE et \ et_EE eu eu_ES fi fi_FI fo fo_FO fr fr_BE fr_CA fr_CH fr_FR \ fr_LU ga ga_IE gl gl_ES id id_ID in in_ID is is_IS it it_CH \ it_IT kl kl_GL nl nl_BE nl_NL no no_NO pt pt_BR pt_PT sv \ sv_FI sv_SE; do echo "$l ISO-8859-1" echo "$l.iso-8859-1 ISO-8859-1" echo "$l.iso-8859-15 ISO-8859-15" echo "$l.iso-8859-15@euro ISO-8859-15" echo "$l@euro ISO-8859-15" echo "$l.cp-437 CP437" echo "$l.cp-850 CP850" echo "$l.cp-1252 CP1252" echo "$l.cp-1252@euro CP1252" #echo "$l.atari-st ATARI-ST" # not a commonly used encoding echo "$l.utf-8 UTF-8" echo "$l.utf-8@euro UTF-8" done for l in cs cs_CZ hr hr_HR hu hu_HU pl pl_PL ro ro_RO sk sk_SK sl \ sl_SI sr sr_CS sr_YU; do echo "$l ISO-8859-2" echo "$l.iso-8859-2 ISO-8859-2" echo "$l.cp-852 CP852" echo "$l.cp-1250 CP1250" echo "$l.utf-8 UTF-8" done for l in mk mk_MK ru ru_RU; do echo "$l ISO-8859-5" echo "$l.iso-8859-5 ISO-8859-5" echo "$l.koi8-r KOI8-R" echo "$l.cp-866 CP866" echo "$l.cp-1251 CP1251" echo "$l.utf-8 UTF-8" done for l in ar ar_SA; do echo "$l ISO-8859-6" echo "$l.iso-8859-6 ISO-8859-6" echo "$l.cp-864 CP864" #echo "$l.cp-868 CP868" # not a commonly used encoding echo "$l.cp-1256 CP1256" echo "$l.utf-8 UTF-8" done for l in el el_GR gr gr_GR; do echo "$l ISO-8859-7" echo "$l.iso-8859-7 ISO-8859-7" echo "$l.cp-869 CP869" echo "$l.cp-1253 CP1253" echo "$l.cp-1253@euro CP1253" echo "$l.utf-8 UTF-8" echo "$l.utf-8@euro UTF-8" done for l in he he_IL iw iw_IL; do echo "$l ISO-8859-8" echo "$l.iso-8859-8 ISO-8859-8" echo "$l.cp-862 CP862" echo "$l.cp-1255 CP1255" echo "$l.utf-8 UTF-8" done for l in tr tr_TR; do echo "$l ISO-8859-9" echo "$l.iso-8859-9 ISO-8859-9" echo "$l.cp-857 CP857" echo "$l.cp-1254 CP1254" echo "$l.utf-8 UTF-8" done for l in lt lt_LT lv lv_LV; do #echo "$l BALTIC" # not a commonly used encoding, wrong encoding name echo "$l ISO-8859-13" done for l in ru_UA uk uk_UA; do echo "$l KOI8-U" done for l in zh zh_CN; do #echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name echo "$l GB2312" done for l in ja ja_JP ja_JP.EUC; do echo "$l EUC-JP" done for l in ko ko_KR; do echo "$l EUC-KR" done for l in th th_TH; do echo "$l TIS-620" done for l in fa fa_IR; do #echo "$l ISIRI-3342" # a broken encoding echo "$l.utf-8 UTF-8" done ;; linux* | *-gnu*) # With glibc-2.1 or newer, we don't need any canonicalization, # because glibc has iconv and both glibc and libiconv support all # GNU canonical names directly. Therefore, the Makefile does not # need to install the alias file at all. # The following applies only to glibc-2.0.x and older libcs. echo "ISO_646.IRV:1983 ASCII" ;; aix*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-6 ISO-8859-6" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-8 ISO-8859-8" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-15 ISO-8859-15" echo "IBM-850 CP850" echo "IBM-856 CP856" echo "IBM-921 ISO-8859-13" echo "IBM-922 CP922" echo "IBM-932 CP932" echo "IBM-943 CP943" echo "IBM-1046 CP1046" echo "IBM-1124 CP1124" echo "IBM-1129 CP1129" echo "IBM-1252 CP1252" echo "IBM-eucCN GB2312" echo "IBM-eucJP EUC-JP" echo "IBM-eucKR EUC-KR" echo "IBM-eucTW EUC-TW" echo "big5 BIG5" echo "GBK GBK" echo "TIS-620 TIS-620" echo "UTF-8 UTF-8" ;; hpux*) echo "iso88591 ISO-8859-1" echo "iso88592 ISO-8859-2" echo "iso88595 ISO-8859-5" echo "iso88596 ISO-8859-6" echo "iso88597 ISO-8859-7" echo "iso88598 ISO-8859-8" echo "iso88599 ISO-8859-9" echo "iso885915 ISO-8859-15" echo "roman8 HP-ROMAN8" echo "arabic8 HP-ARABIC8" echo "greek8 HP-GREEK8" echo "hebrew8 HP-HEBREW8" echo "turkish8 HP-TURKISH8" echo "kana8 HP-KANA8" echo "tis620 TIS-620" echo "big5 BIG5" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" echo "hp15CN GB2312" #echo "ccdc ?" # what is this? echo "SJIS SHIFT_JIS" echo "utf8 UTF-8" ;; irix*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-9 ISO-8859-9" echo "eucCN GB2312" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" ;; osf*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-8 ISO-8859-8" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-15 ISO-8859-15" echo "cp850 CP850" echo "big5 BIG5" echo "dechanyu DEC-HANYU" echo "dechanzi GB2312" echo "deckanji DEC-KANJI" echo "deckorean EUC-KR" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" echo "GBK GBK" echo "KSC5601 CP949" echo "sdeckanji EUC-JP" echo "SJIS SHIFT_JIS" echo "TACTIS TIS-620" echo "UTF-8 UTF-8" ;; solaris*)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -