mklocale
—
LC_CTYPE locale ?ե??????κ???
mklocale
[-d
]
< src-file >
language/LC_CTYPE mklocale
[-d
] -o
language/LC_CTYPE src-file
mklocale
?桼?ƥ????ƥ???ɸ?????Ϥ???
LC_CTYPE
?Υ??????ե????????ɤ߹??ߡ?
/usr/share/locale/language/LC_CTYPE
???֤??Τ?Ŭ???? LC_CTYPE
?ΥХ??ʥ??ե???????ɸ?????ϤؽФ??ޤ???
src-file
?Υե????ޥåȤ???????ñ???Ǥ???
??????ɤ????Ϥޤꡢ???????տ魯???ǡ?????³??ʣ???ιԤ??鹽???????ޤ???
?ե????????˥??????Ȥ??????ϡ? C
?Υ????????Υ??????Ȥ????Ѥ??뤳?Ȥ??Ǥ??ޤ???
???Υ??ץ??????????Ѳ?ǽ?Ǥ?:
-d
- ?ǥХå??ѥ??å???????ͭ???ˤ??ޤ???
-o
- ???ϥե??????????ꤷ?ޤ???
???Ҥ??륭????ɤ?¾?ˡ?
src-file
??????ͭ???ʥȡ??????Ȥ??ưʲ??Τ??Τ??????ޤ???
RUNE
RUNE
?ϰʲ??Τ????줫?Ǥ???
- 'x'
- ASCII ʸ???? x ??
- '\x'
- ANSI ʸ???? \x ?? ?????ǡ?
\x ??
\a
,
\b
, \f
,
\n
, \r
,
\t
, \v
?Τ????줫?ˤʤ??ޤ???
- 0x[0-9a-z]*
- rune ?????ɤ?ɽ??16?ʿ??Ǥ???
- 0[0-7]*
- rune ?????ɤ?ɽ??8?ʿ??Ǥ???
- [1-9][0-9]*
- rune ?????ɤ?ɽ??10?ʿ??Ǥ???
STRING
- ???֥륯?????ơ??????? (")
?ǰϤޤ줿ʸ?????Ǥ???
THRU
...
?? -
?Τ????줫?ǡ??ϰϤ??????˻Ȥ????ޤ???
- literal
- ?ʲ???ʸ????ʸ???̤??˲??ᤵ???ޤ???
<([
- ?ޥåԥϤ??ޤ???????????????Ʊ????̣???????ޤ???
>)]
- ?ޥåԥ???λ???ޤ???????????????Ʊ????̣???????ޤ???
- :
- ?ޥåԥ??????ζ??ڤ?ʸ???Ȥ??ƻ??Ѥ????ޤ???
???????ե????????˰??٤Τ߸????륭????ɤˤϰʲ??Τ??Τ??????ޤ???
ENCODING
- ??????³??
STRING
?ȡ??????ˤ??äơ? ???????? locale
?ˤƻȤ????륨???ǥ??????????ꤷ?ޤ???
???????Ǥ??륨???ǥ??Ȥ??ưʲ??Τ??Τ??????ޤ???
BIG5
- ???????? “Big5”
?????ǥ??Ǥ???
EUC
- ?????Ĥ??? UNIX
?Υ٥????ǻȤ????Ƥ???
EUC
?????ǥ??Ǥ???
GB18030
- ???????ƥ????Ȥ? PRC
????ɸ?२???ǥ??Ǥ???
GB2312
- ???????ƥ????ȤθŤ? PRC
????ɸ?२???ǥ??Ǥ???
GBK
- ???ϰϤ˻??Ѥ????Ƥ??롢???????ƥ????ȤΥ????ǥ??Ǥ??ꡢ
GB 2312-1980
?Ȥθ????ߴ??????????ޤ?
MSKanji
- Microsoft
?????Ѥ??????ܸ쥨???ǥ???????ˡ?Ǥ??ꡢ
?????䤫?? JIS ?????ˤ??Ƥ??ޤ??? “Shift
JIS” ?? “SJIS”
?Ȥ??Ƥ??Τ????Ƥ??ޤ???
NONE
- ?Ѵ????Ԥʤ??ޤ??ǥե????ȤΥ????ǥ??Ǥ???
UTF2
- (???ͤ??㲼???Ƥ??ޤ?) Bell Labs ?? Plan 9
?????ܿ????줿 “Universal character set
Transformation Format” ?Ǥ???
UTF-8
- ISO 10646 ??
UTF-8
?Ѵ??ե????ޥåȤǤ??ꡢRFC
2279 ???????????Ƥ??ޤ???
VARIABLE
- 1
?ĤΥ???ʸ???⤷???ϥ??ڡ???ʸ???????Υ?????ɤ?³????
???θ??˥????ǥ?????ͭ?Υǡ??????֤????ޤ???
???ߤ?
EUC
?????ǥ??Τߤǡ????β??ѥǡ?????ɬ?פȤʤ??ޤ???
?ܤ?????
euc(4)
?Ȥ??Ƥ?????????
INVALID
- (???ͤ??㲼???Ƥ??ޤ?) 1 ?Ĥ?
RUNE
??³???ƻ??ꤷ??????????
locale ?ˤ??????????? rune ?????ꤷ?ޤ???
?ʲ??Υ?????ɤ?ʣ?????????Ǥ??????η??????????ޤ???
MAPLOWER
- ??ʸ???ؤ??Ѵ??ޥåԥ????????ޤ???
RUNE2
?? RUNE1
?ξ?ʸ??ɽ???Ȥʤ??ޤ???
MAPUPPER
- ??ʸ???ؤ??Ѵ??ޥåԥ????????ޤ???
RUNE2
?? RUNE1
????ʸ??ɽ???Ȥʤ??ޤ???
TODIGIT
- rune
???餽?ο??ͤؤΥޥåԥ????????ޤ???
RUNE2
?? RUNE1
????????ɽ???Ȥʤ??ޤ??? ?㤨?С?ASCII
ʸ???? ‘0
’ ?? 10?ʿ??? 0
?˥ޥåפ????ޤ??? 255
?ʲ????ͤΤߤ???????ǽ?Ǥ???
?ʲ??Υ?????ɤ?ʣ?????????Ǥ??????η??????????ޤ???
RUNE
- ???? rune
?ϥ?????ɤˤ??ä????????줿°?????????ޤ???
RUNE1
THRU RUNEn
RUNE1
?? RUNEn
???ޤࡢ???δ֤˻??ꤵ?줿???Ƥ?
rune
?ϥ?????ɤˤ??ä????????줿°?????????ޤ???
ALPHA
- ?????ե??٥åȤ?ɽ????ǽ??ʸ???Ǥ???
rune ?????????ޤ???
CONTROL
- ????ʸ???Ǥ??? rune ?????????ޤ???
DIGIT
- 10 ?ʿ?????ɽ????ǽ??ʸ???Ǥ??? rune
?????????ޤ???
GRAPH
- ɽ????ǽ??ʸ???Ǥ??? rune
?????????ޤ???
LOWER
- ??ʸ????ɽ????ǽ??ʸ???Ǥ??? rune
?????????ޤ???
PUNCT
- ????????ɽ????ǽʸ???? rune ?????????ޤ???
SPACE
- ???ڡ???ʸ???Ǥ??? rune ?????????ޤ???
UPPER
- ??ʸ????ɽ????ǽ??ʸ???Ǥ??? rune
?????????ޤ???
XDIGIT
- 16 ?ʿ?????ɽ????ǽ??ʸ???Ǥ??? rune
?????????ޤ???
BLANK
- ????ʸ???Ǥ??? rune ???????ޤ???
PRINT
- ɽ????ǽ?? rune ?????????ޤ???
IDEOGRAM
- ɽ?յ??? (????:7, = & ?ʤɤε???)
??ɽ????ǽ??ʸ???Ǥ??? rune
?????????ޤ???
SPECIAL
- ?ü?ʸ???ǰ?????ǽ??ʸ???Ǥ??? rune
?????????ޤ???
PHONOGRAM
- ɽ??ʸ????ɽ????ǽ??ʸ???Ǥ??? rune
?????????ޤ???
SWIDTH0
- ɽ???? 0 ?? rune ?????????ޤ???
SWIDTH1
- ɽ???? 1 ?? rune ?????????ޤ???
SWIDTH2
- ɽ???? 2 ?? rune ?????????ޤ???
SWIDTH3
- ɽ???? 3 ?? rune ?????????ޤ???
ɽ??????????Ū?????????ʤ????硢?ǥե????ȤǤϡ?
ɽ????ǽ rune ???Ф??Ƥ??? 1
?????ꤵ???ޤ???
colldef(1),
mbrune(3),
rune(3),
setlocale(3),
wcwidth(3),
big5(5),
euc(5),
gb18030(5),
gb2312(5),
gbk(5),
mskanji(5),
utf2(5),
utf8(5)
mklocale
?桼?ƥ????ƥ??Ϥ??ޤ??˳????ڤ???Ǥ???
mklocale
?桼?ƥ????ƥ???
4.4BSD ?????о줷?ޤ?????