Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

locale-gen(8) [linux man page]

LOCALE-GEN(8)						      System Manager's Manual						     LOCALE-GEN(8)

NAME
locale-gen - compile a list of locale definition files SYNOPSIS
locale-gen [options] [locale] [language] ... DESCRIPTION
Compiled locale files take about 50MB of disk space, and most users only need few locales. In order to save disk space, compiled locale files are not distributed in the locales package, but selected locales are automatically generated when this package is installed by run- ning the locale-gen program. If a list of languages and/or locales is specified as arguments, then locale-gen only generates these particular locales and adds the new ones to /var/lib/locales/supported.d/local. Otherwise it generates all supported locales. Locale data files can be stored either in a single archive file, /usr/lib/locale/locale-archive, or in a deep tree where individual files are stored under /usr/lib/locale/<locale_name>/LC_*. But unlike the locales package, compiled locale definitions are not removed when run- ning locale-gen, and locales are compiled again only if locale source files have changed. OPTIONS
These options override settings found in /etc/belocs/locale-gen.conf. --help Display an help message and exit. --purge Remove all existing locales before processing. --no-purge Do not remove existing locales before processing. --archive When this option is set, locale data are stored in a single archive /usr/lib/locale/locale-archive. --no-archive When this option is set, locale data are stored in /usr/lib/locale/<locale_name>/LC_* files. This is the default. --aliases=FILE Locale aliases are read from FILE. FILES
/var/lib/locales/supported.d/* List all locales to generate. File format is similar to /usr/share/i18n/SUPPORTED. /etc/belocs/locale-gen.conf Customize how compiled locale files are stored onto disk. /usr/lib/locale/<locale_name>/LC_* Compiled locale data. /usr/lib/locale/locale-archive Generated archive containing compiled locale data, if --archive flag is set. /var/lib/belocs Directory used to keep track of changes in locale source files. SEE ALSO
localedef(1), locale(1), locale-gen.conf(5). AUTHOR
The locale-gen program was originally written by Debian GNU libc maintainers, and has been improved by Denis Barbier <barbier@debian.org> for the belocs-locales-bin package. This manual page has been rewritten from scratch to document the current behavior. Debian GNU/Linux March 2005 LOCALE-GEN(8)

Check Out this Related Man Page

LOCALE(1)						    BSD General Commands Manual 						 LOCALE(1)

NAME
locale -- display locale settings SYNOPSIS
locale [-a|m] locale [-ck] name [...] DESCRIPTION
locale displays information about the current locale, or a list of all available locales. When locale is run with no arguments, it will display the current source of each locale category. When locale is given the name of a category, it acts as if it had been given each keyword in that category. For each keyword it is given, the current value is displayed. OPTIONS
-a Lists all public locales. -c name ... Lists the category name before each keyword, unless it is the same category as the previously displayed keyword. -k name ... Displays the name of each keyword prior to its value. -m Lists all available public charmaps. Darwin locales do not support charmaps, so list all CODESETs instead. OPERANDS
The following operand is supported: name is the name of a keyword or category to display. A list of all keywords and categories can be shown with the following command: locale -ck LC_ALL ENVIRONMENT
LANG Used as a substitute for any unset LC_* variable. If LANG is unset, it will act as if set to "C". If any of LANG or LC_* are set to invalid values, locale acts as if they are all unset. LC_ALL Will override the setting of all other LC_* variables. LC_COLLATE Sets the locale for the LC_COLLATE category. LC_CTYPE Sets the locale for the LC_CTYPE category. LC_MESSAGES Sets the locale for the LC_MESSAGES category. LC_MONETARY Sets the locale for the LC_MONETARY category. LC_NUMERIC Sets the locale for the LC_NUMERIC category. LC_TIME Sets the locale for the LC_TIME category. SEE ALSO
localedef(1), localeconv(3), nl_langinfo(3), setlocale(3) STANDARDS
The locale utility conforms to IEEE Std 1003.1-2001 (``POSIX.1''). HISTORY
locale appeared in Mac OS X 10.4 Darwin August 27, 2004 Darwin
Man Page