Table of Contents

The locale

A locale is a set of language and cultural rules like alphabet order, 12/24 hour clock selection or the date and time formats. It is defined by environment variables. Most often the LC_ALL variable controls everything.

If the LC_ALL is not set, the locale is controlled by a set of variables for specific locale categories, e.g.:

LC_CTYPECharacter classification and case conversion
LC_COLLATECollation order
LC_TIMEDate and time formats
LC_NUMERICNon-monetary numeric formats
LC_MESSAGESFormats of messages
LANGDefault value for unset variables