| 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:
RUNERUNE may be any of the following:
\a,
\b, \f,
\n, \r,
\t, or \v.STRINGTHRU... or -. Used to
indicate ranges.Key words which should only appear once are:
ENCODINGSTRING which indicates the encoding
mechanism to be used for this locale. The current encodings are:
ASCIIBIG5EUCEUC
encoding as used by several vendors of UNIX
systems.GB18030GB2312GBKMSKanjiNONEUTF-8UTF-8 transformation format of ISO 10646
as defined by RFC 2279.VARIABLEEUC encoding requires variable data. See
euc(5) for further details.INVALIDRUNE 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.MAPLOWERRUNE2 is the lower
case representation of RUNE1.MAPUPPERRUNE2 is the upper
case representation of RUNE1.TODIGITRUNE2 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:
RUNERUNE1 THRU RUNEnRUNE1 and
RUNEn have the property defined by the
keyword.ALPHACONTROLDIGITGRAPHLOWERPUNCTSPACEUPPERXDIGITBLANKPRINTIDEOGRAMSPECIALPHONOGRAMSWIDTH0SWIDTH1SWIDTH2SWIDTH3If 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.
| April 18, 2016 | macOS 15.6 |