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 -- get locale-specific information SYNOPSIS
locale [-a | -m] locale -k list [prefix] locale [-ck] [keyword ...] DESCRIPTION
The locale utility is supposed to provide most locale specific information to the standard output. When locale is invoked without arguments, it will print out a summary of the current locale environment, subject to the environment settings and internal status. When locale is invoked with the keyword arguments, and no options are specified, it will print out the values of all keywords specified, using the current locale settings. The following options are available: -a Print names of all available locales. While looking for locales, locale will respect the PATH_LOCALE environment variable, and use it instead of the system's default locale directory. -c Print the category name for all selected keywords. If no keywords are selected, print the category name for all defined keywords. -k Print the names and values of all selected keywords. If no keywords are selected, print the names and values of all defined key- words. -m Print names of all available charmaps. IMPLEMENTATION NOTES
The special (FreeBSD specific) keyword list can be used to retrieve the human readable list of all available keywords. If so, a prefix string can be defined to limit the amount of keywords returned. EXIT STATUS
The locale utility exits 0 on success, and >0 if an error occurs. SEE ALSO
setlocale(3) STANDARDS
The locale utility conforms to IEEE Std 1003.1-2004 (``POSIX.1''). The LC_CTYPE, LC_MESSAGES and NLSPATH environment variables are not interpreted. BUGS
Since FreeBSD does not support charmaps in their POSIX meaning, locale emulates the -m option using the CODESETs listing of all available locales. BSD
November 18, 2012 BSD
Man Page