The utility reads source definitions for one or more locale categories
belonging to the same locale from the file named in the
Each category source definition is identified by the corresponding environment variable name and terminated by an END category-name statement. The following categories are supported:
|Defines character classification and case conversion.
|Defines collation rules.
|Defines the format and symbols used in formatting of monetary information.
|Defines the decimal delimiter, grouping and grouping symbol for non-monetary numeric editing.
|Defines the format and content of date and time information.
|Defines the format and values of affirmative and negative responses.
The following options are supported:
|Use big-endian byte order for output.
|Creates permanent output even if warning messages have been issued.
|BSD-style output. Rather than the default of creating the localename directory and creating files like LC_CTYPE, LC_COLLATE, etc.amp; in that directory, the output file names have the format "<localename>.<category>" and are dumped to the current directory.
Specifies the pathname of a file containing a mapping of character symbols and
collating element symbols to actual character encodings.
This option must be specified if symbolic names (other than collating symbols
defined in a
keyword) are used.
|The path name of a file containing the source definitions. If this option is not present, source definitions will be read from standard input.
|Use little-endian byte order for output.
|Specifies the name of a codeset used as the target mapping of character symbols and collating element symbols whose encoding values are defined in terms of the ISO/IEC 10646-1:2000 standard position constant values. See NOTES.
|Ignore the presence of character symbols that have no matching character definition. This facilitates the use of a common locale definition file to be used across multiple encodings, even when some symbols are not present in a given encoding.
|Emit verbose debugging output on standard output.
|The path name of the file containing character screen width definitions. If not supplied, then default screen widths will be assumed, which will generally not account for East Asian encodings requiring more than a single character cell to display, nor for combining or accent marks that occupy no additional screen width.
The following operands are required:
|Identifies the locale. If the name contains one or more slash characters, localename will be interpreted as a path name where the created locale definitions will be stored. This capability may be restricted to users with appropriate privileges. (As a consequence of specifying one localename, although several categories can be processed in one execution, only categories belonging to the same locale can be processed.)
|No errors occurred and the locales were successfully created.
|Warnings occurred and the locales were successfully created.
|The locale specification exceeded implementation limits or the coded character set or sets used were not supported by the implementation, and no locale was created.
|Warnings or errors occurred and no output was created.
If an error is detected, no permanent output will be created.
When conflicts occur between the charmap specification of
and the corresponding value for the codeset represented by the
When conflicts occur between the charmap encoding values specified for symbolic names of characters of the portable character set and the character encoding values defined by the US-ASCII, the result is unspecified.
It was written by
provided the alternations necessary to compile cleanly on
.Dx . Baptiste Daroussin <Mt bapt@FreeBSD.org> ported it to FreeBSD and converted it to tree(3).
|October 18, 2018
|UNIX is a four-letter word!