HP-UX Reference (11i v3 07/02) - 1M System Administration Commands A-M (vol 3)

l
localedef(1M) localedef(1M)
NAME
localedef - generate a locale environment
SYNOPSIS
localedef [-cenvw][-C compiler_options ][
-L
loader_options ][
-m method_file ]
[
-f charmap_file ][
-i locale_definition ][-u code_set_name] locale_name
DESCRIPTION
The
localedef command sets up the language environment for the named locale. The
localedef
command reads a locale definition file (see localedef(4) for a detailed description) from standard input
(default) or from locale_definition file, creates a locale file with the same name as specified for the
locale_name parameter, and optionally installs this locale in the appropriate directory. Installation of pub-
lic locales (those accessible to all users) requires appropriate privileges. Creation of locales (both private
and public) requires access to the ANSI C compiler.
Options
The
localedef command recognizes the following options:
-c Create permanent output even if warning messages have been generated.
-e Generate 64-bit locale in addition to the 32-bit locale. This is the default on a 64-bit operat-
ing system (and hence on Itanium(R)-based systems) and is included to allow cross platform
development.
-n (noinstall) Create the locale file in the current directory.
-v (verbose) Generate as many diagnostic messages as possible.
-w Generate additional warning messages for duplicate definitions and ellipses use in the
LC_COLLATE category.
-f charmap_file
If locale definition file contains symbolic names (of the form <name>
) use charmap_file.
See charmap(4) for a description of the format of a charmap_file.
-i locale_definition
Use locale_definition file as input, instead of standard input (default).
-m method_file
Use the specified method_file to overwrite use of default methods in processing the locale
definition.
-u code_set_name
Specify the name of a codeset used as the target mapping of character symbols and collat-
ing element symbols whose encoding values are defined in terms of the Unicode (ISO/IEC
10646-1:2000) scalar values.
-C compiler_options
Specify additional compiler options to be applied in compiling the locale. See cc_bundled(1)
for a complete list of options. Use with care on a 64-bit operating system since the addi-
tional default option includes +DA2.0W on PA-RISC and +DD64 on Itanium-based systems.
-L loader_options
Specify additional loader options to be applied in linking the locale. See ld(1) for a com-
plete list of options.
locale_name This argument is required, and identifies the name of the language following the naming
convention of the LANG environment variable (see environ(5)):
language [ _territory ][.codeset ]
The following is a brief description of the components that make up a locale. For a complete description of
the form and syntax of a locale definition file, see localedef(4). For a complete description of the form and
effects of a charmap file, see charmap(4).
Six categories of data in the locale_name file are recognized by setlocale() , and make up a
language definition:
LC_COLLATE Information in this category affects behavior of regular-expressions and NLS
string-collation functions.
HP-UX 11i Version 3: February 2007 1 Hewlett-Packard Company 443