LOCALEDEF(1) | User Commands | LOCALEDEF(1) |
localedef - define locale environment
localedef [-c] [-v] [-U] [-f charmap]
[-w widthfile] [-i sourcefile]
[-u code_set_name] localename
The localedef utility converts source definitions for locale categories into a format usable by the functions and utilities whose operational behavior is determined by the setting of the locale environment variables; see environ(7).
The utility reads source definitions for one or more locale categories belonging to the same locale from the file named in the -i option (if specified) or from standard input.
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.
LC_CTYPE
LC_COLLATE
LC_MONETARY
LC_NUMERIC
LC_TIME
LC_MESSAGES
The following options are supported:
-c
-v
-U
Support for this option is an illumos extension.
-f charmap
-w widthfile
The support for width files is an illumos extension.
-i sourcefile
-u code_set_name
The following operand is supported:
localename
localedef creates a directory of files that represents the locale's data. The contents of this directory should generally be copied into the appropriate subdirectory of /usr/lib/locale in order the definitions to be visible to programs linked with libc.
See environ(7) for definitions of the following environment variables that affect the execution of localedef: LANG, LC_ALL, LC_COLLATE, LC_CTYPE, LC_MESSAGES, and NLSPATH.
The following exit values are returned:
0
1
2
>3
If an error is detected, no permanent output will be created.
/usr/lib/locale/localename/
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Standard |
locale(1), iconv_open(3C), nl_langinfo(3C), strftime(3C), attributes(7), charmap(7), environ(7), extensions(7), locale(7), standards(7)
If warnings occur, permanent output will be created if the -c option was specified. The following conditions will cause warning messages to be issued:
When the -u option is used, the code_set_name option-argument is interpreted as a name of a codeset to which the ISO/IEC 10646-1: 2000 standard position constant values are converted. Both the ISO/IEC 10646-1: 2000 standard position constant values and other formats (decimal, hexadecimal, or octal) are valid as encoding values within the charmap file. The codeset can be any codeset that is supported by the iconv_open(3C) function on the system.
When conflicts occur between the charmap specification of code_set_name, mb_cur_max, or mb_cur_min and the corresponding value for the codeset represented by the -u option-argument code_set_name, the localedef utility fails as an error.
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.
April 9, 2016 | OmniOS |