localedef - define locale environment
localedef [-c] [-C compiler_options] [-f charmap] [-i sourcefile] [-L linker_options] [-m model] [-u code_set_name] [-W cc, arg] [-x extensions_file] 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(5).
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
-C compiler_options
This is an old option. Use the -W cc,arg option instead.
-f charmap
-i sourcefile
-L linker_options
This is an old option. Use the -W cc,arg option instead.
-m model
Specify model as ilp32 to generate a 32-bit locale object. Specify lp64 to generate a 64-bit locale object. If the -m option is not specified, localedef generates a 32-bit locale object. And if no other options than -c, -f, and -i options are specified and if the system running localedef supports the 64-bit environment, localedef additionally generates a 64-bit locale object.
-u code_set_name
-W cc,arg
Use this option instead of the -C and -L options.
-x extensions_file
The following operand is supported:
localename
localedef creates a temporary C source file that represents the locale's data. localedef then calls the C compiler to compile this C source file into a shared object.
If the -m ilp32 option is specified, localedef calls the C compiler for generating 32-bit objects and generates a 32-bit locale object. If the -m lp64 option is specified, localedef calls the C compiler for generating 64-bit objects and generates a 64-bit locale object.
If the -m option is not specified, localedef calls the C compiler for generating 32-bit objects and generates a 32-bit locale object. If no other options than -c, -f, and -i options are specified and if the system running localedef supports the 64-bit environment, localedef additionally calls the C compiler for generating 64-bit objects and generates a 64-bit locale object.
If no option to the C compiler is explicitly specified using the -W, -C, or -L options, localedef calls the C compiler with appropriate C compiler options to generate a locale object or objects.
If the -m ilp32 option is specified, localedef generates a 32-bit locale object named:
localename.so.version_number
If the -m lp64 option is specified, localedef generates a 64-bit locale object named:
localename.so.version_number
If the -m option is not specified, localedef generates a 32-bit locale object named:
localename.so.version_number
and, if appropriate, generates a 64-bit locale object named:
64-bit_architecture_name/localename.so.version_number
The shared object for the 32-bit environment must be moved to:
/usr/lib/locale/localename/localename.so.version_number
The shared object for the 64-bit environment on SPARC must be moved to:
/usr/lib/locale/localename/sparcv9/localename.so.version_number
The shared object for the 64-bit environment on AMD64 must be moved to:
/usr/lib/locale/<localename>/amd64/<localename>.so.<version_number>
localedef also generates a text file named localename that is used for information only.
See environ(5) 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
>3
If an error is detected, no permanent output will be created.
/usr/lib/localedef/extensions/generic_eucbc.x
/usr/lib/localedef/extensions/single_byte.x
/usr/lib/locale/localename/localename.so.version_number
/usr/lib/locale/localename/sparcv9/localename.so.version_number
/usr/lib/locale/<localename>/amd64/<localename>.so.<version_number>
See attributes(5) for descriptions of the following attributes:
|
locale(1), iconv_open(3C), nl_langinfo(3C), strftime(3C), attributes(5), charmap(5), environ(5), extensions(5), locale(5), standards(5)
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.
If a non-printable character in the charmap has a width specified that is not -1, localedef generates a warning.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |