Locale naming conventions

Each locale is named by its locale definition source file name. These files are named for the language, territory, and code set information they describe. The following format is used for naming a locale definition file:

language[_territory][.codeset][@modifier]

For example, the locale for the Danish language spoken in Denmark using the ISO8859-1 code set is da_DK.ISO8859-1. The da stands for the Danish language and theDK stands for Denmark. The short form of da_DK is sufficient to indicate this locale. The same language and territory using the ISO8859–15 code set is indicated by da_DK.8859–15.

System-defined locale definition files are provided to show the format of locale categories and their keywords. The /usr/lib/nls/loc directory contains the locale definition files for system-defined locales. The C, or POSIX, locale defines the ANSI C-defined standard locale inherited by all processes at startup time. To obtain a list of system-defined locale definition source files, enter the following on the command line:
/usr/lib/nls/lsmle -c