GLibC Locales

Portage can be configured to not build all available locales. By applying the following two steps, the selected locales are whitelisted.

  1. Configure the GLibC ebuild to allow building selected locales:

echo "sys-libs/glibc userlocales" >> /etc/portage/package.use

  1. Create a whitelist of locales in /etc/locales.build:
  en_US/ISO-8859-1`
  en_US.UTF-8/UTF-8`
  de_DE/ISO-8859-1`
  de_DE@euro/ISO-8859-15`
  de_DE.UTF-8/UTF-8

See also: localization