MKLOCALE(1) | General Commands Manual | MKLOCALE(1) |
mklocale
— make
LC_CTYPE locale files
mklocale |
[-d ] < src-file
> language/LC_CTYPE |
mklocale |
[-d ] -o
language/LC_CTYPE
src-file |
The mklocale
utility reads a
LC_CTYPE
source file from standard input and
produces a LC_CTYPE
binary file on standard output
suitable for placement in
/usr/share/locale/language/LC_CTYPE.
The format of src-file is quite simple. It consists of a series of lines which start with a keyword and have associated data following. C style comments are used to place comments in the file.
Following options are available:
Besides the keywords which will be listed below, the following are valid tokens in src-file:
RUNE
RUNE
may be any of the following:
\a
,
\b
, \f
,
\n
, \r
,
\t
, or \v
.STRING
THRU
...
or -
. Used to
indicate ranges.Key words which should only appear once are:
ENCODING
STRING
which indicates the encoding
mechanism to be used for this locale. The current encodings are:
ASCII
BIG5
EUC
EUC
encoding as used by several vendors of UNIX
systems.GB18030
GB2312
GBK
MSKanji
NONE
UTF-8
UTF-8
transformation format of ISO 10646
as defined by RFC 2279.VARIABLE
EUC
encoding requires variable data. See
euc(5) for further details.INVALID
RUNE
follows and is used as
the invalid rune for this locale.The following keywords may appear multiple times and have the following format for data:
<RUNE1
RUNE2>
RUNE1
is mapped to RUNE2
.<RUNE1
THRU RUNEn
: RUNE2>
RUNE1
through RUNEn
are mapped to RUNE2
through
RUNE2
+ n-1.MAPLOWER
RUNE2
is the lower
case representation of RUNE1
.MAPUPPER
RUNE2
is the upper
case representation of RUNE1
.TODIGIT
RUNE2
is the integer value represented by
RUNE1
. For example, the ASCII character
‘0
’ would map to the decimal value
0. Only values up to 255 are allowed.The following keywords may appear multiple times and have the following format for data:
RUNE
RUNE1 THRU RUNEn
RUNE1
and
RUNEn
have the property defined by the
keyword.ALPHA
CONTROL
DIGIT
GRAPH
LOWER
PUNCT
SPACE
UPPER
XDIGIT
BLANK
PRINT
IDEOGRAM
SPECIAL
PHONOGRAM
SWIDTH0
SWIDTH1
SWIDTH2
SWIDTH3
If no display width explicitly defined, width 1 assumed for printable runes by default.
colldef(1), localedef(1), setlocale(3), wcwidth(3), big5(5), euc(5), gb18030(5), gb2312(5), gbk(5), mskanji(5), utf8(5)
The mklocale
utility first appeared in
4.4BSD.
The mklocale
utility is overly
simplistic.
October 17, 2004 | Mac OS X 12 |