locale-gen.conf(5)

locale-gen.conf5

Configuration file for locale-gen

Overview

The file /etc/belocs/locale-gen.conf customize how locales generated by locale-gen are stored onto disk.

This file is executed by locale-gen as a shell fragment, which means that errors in this file can break locale-gen. It can contain the following variable definitioos, of the form <variable>=<value>.

Variables

ARCHIVE=(yes|no)

If set to yes, locale data are stored into a single archive /usr/lib/locale/locale-archive. Otherwise, locale data are stored in /usr/lib/locale/<locale_name>/LC_* files. (Default is no)

PURGE=(yes|no)

If set to yes, locale data are first removed when locale-gen is run. This is the behavior of the locales package. (Default is no)

ALIASES=file

Specify a file name containing locale aliases.

GLIBC_MAGIC=(0x20000828|0x20031115|0x20051014|auto)

In order to ensure compatibility between compiled data and GNU libc functions, a magic number is stored in locale data, and if it does not match GNU libc one, locale data are ignored. Current locale-gen program can write compiled data with magic numbers 0x20000828 (for 2.1.96 <= GNU libc <= 2.3.2), 0x20031115 (for GNU libc >= 2.3.3, which is the default in etch) or 0x20031115 (for GNU libc CVS, which is not used yet). If this variable is set to auto, a locale is generated by the localedef command shipped in GNU libc, and the magic number is extracted from this locale. (Default is auto)

Releases

3 releases since Debian 3.1 (Sarge); the text changed 1 time.

  1. 3.1
  2. 4.0–5.0

Author

Denis Barbier <[email protected]>

From belocs-locales-bin 2.4-4 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.