HP-UX Reference (11i v1 05/09) - 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 ] locale_name
DESCRIPTION
localedef sets up the language environment for the named locale.
localedef 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 public locales (those accessible
to all users) requires appropriate privileges. Creation of locales (both private and public) requires access to
the ANSI C compiler.
Options
localedef 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
operating system 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.
-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 sys-
tem since the additional default option includes +DA2.0W.
-L loader_options
Specify additional loader options to be applied in linking the locale. See ld(1) for a
complete list of options.
locale_name This argument is required, and identifies the name of the language following the nam-
ing 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(3C), and make up a language
definition:
LC_COLLATE Information in this category affects behavior of regular-expressions and NLS
string-collation functions.
LC_CTYPE Information in this category affects behavior of character classification and
conversion functions.
LC_MONETARY Information in this category affects behavior of functions that handle monetary
values.
Section 1M424 Hewlett-Packard Company 1 HP-UX 11i Version 1: September 2005