| 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 an
LC_CTYPE source file from standard input and
produces an 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.
The 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.STRINGTHRUKey words which should only appear once are:
ENCODINGSTRING which indicates the encoding
mechanism to be used for this locale. The current encodings are:
NONEUTF2Universal
character set Transformation Format adopted from Plan 9
from Bell Labs.EUCEUC
encoding as used by several vendors of UNIX
systems.VARIABLEEUC encoding requires variable data.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
RUNE2MAPLOWERRUNE2 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. On
OpenBSD, this information is ignored and not put
into the binary output file.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.ALPHACONTROLDIGITGRAPHLOWERPUNCTSPACEUPPERXDIGITBLANKPRINTIDEOGRAMSPECIALPHONOGRAMSWIDTHnCHARSETThe mklocale utility first appeared in
4.4BSD.
The mklocale utility is overly
simplistic.
We should switch to localedef and its file
format, which is more standard.
| May 29, 2016 | openbsd |