Locale - POSIX Platforms

POSIX Platforms

On POSIX platforms, locale identifiers are defined similarly to the BCP 47 definition of language tags, but the locale variant modifier is defined differently, and the character set is included as a part of the identifier.

In the next example there is an output of command locale for Czech language (cs), Czech Republic (CZ) with explicit UTF-8 encoding:

$ locale LANG=cs_CZ.UTF-8 LC_CTYPE="cs_CZ.UTF-8" LC_NUMERIC="cs_CZ.UTF-8" LC_TIME="cs_CZ.UTF-8" LC_COLLATE="cs_CZ.UTF-8" LC_MONETARY="cs_CZ.UTF-8" LC_MESSAGES="cs_CZ.UTF-8" LC_PAPER="cs_CZ.UTF-8" LC_NAME="cs_CZ.UTF-8" LC_ADDRESS="cs_CZ.UTF-8" LC_TELEPHONE="cs_CZ.UTF-8" LC_MEASUREMENT="cs_CZ.UTF-8" LC_IDENTIFICATION="cs_CZ.UTF-8" LC_ALL=

The full list of POSIX locale codes is on the Internet Assigned Numbers Authority (IANA) website.

Details of the IANA registry for language tag extensions and IANA protocols are also there.

Read more about this topic:  Locale

Famous quotes containing the word platforms:

    The personal things should be left out of platforms at conventions .... You can argue yourself blue in the face, and you’re not going to change each other’s minds. It’s a waste of your time and my time.
    Barbara Bush (b. 1925)