Difference between revisions of "Locale"
Jump to navigation
Jump to search
(13 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{lowercase}} | ||
<code>locale</code> command from <code>[[libc-bin]]</code> package in [[Ubuntu]]. | <code>locale</code> command from <code>[[libc-bin]]</code> package in [[Ubuntu]]. | ||
− | locale -a | + | [[locale -a]] |
C | C | ||
C.UTF-8 | C.UTF-8 | ||
POSIX | POSIX | ||
+ | |||
+ | |||
+ | locale | ||
+ | [[LANG]]="en_US.UTF-8" | ||
+ | [[LC_COLLATE]]="en_US.UTF-8" | ||
+ | [[LC_CTYPE]]="en_US.UTF-8" | ||
+ | [[LC_MESSAGES]]="en_US.UTF-8" | ||
+ | [[LC_MONETARY]]="en_US.UTF-8" | ||
+ | [[LC_NUMERIC]]="en_US.UTF-8" | ||
+ | [[LC_TIME]]="en_US.UTF-8" | ||
+ | [[LC_ALL]]="en_US.UTF-8" | ||
Line 14: | Line 26: | ||
− | + | * <code>[[/etc/default/locale]]</code> | |
* <code>[[apt-get install -y locales]]</code> | * <code>[[apt-get install -y locales]]</code> | ||
Line 23: | Line 35: | ||
* <code>[[locale-gen]]</code> command from <code>[[locales]]</code> package | * <code>[[locale-gen]]</code> command from <code>[[locales]]</code> package | ||
* <code>[[localedef]]</code> | * <code>[[localedef]]</code> | ||
+ | * <code>[[export]]</code> | ||
+ | * [[LANG]] | ||
+ | * [[LOCALE]] in [[CREATE DATABASE]] | ||
+ | [[ALTER DATABASE]] database_name CHARACTER SET character_set_name COLLATE collation; | ||
+ | [[CREATE DATABASE]] | ||
+ | [[initdb]] | ||
+ | [[SHOW LC_COLLATE]] | ||
== See also == | == See also == | ||
* {{locale}} | * {{locale}} | ||
− | |||
[[Category:Linux]] | [[Category:Linux]] |
Latest revision as of 12:32, 16 December 2022
locale
command from libc-bin
package in Ubuntu.
locale -a C C.UTF-8 POSIX
locale LANG="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_CTYPE="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_ALL="en_US.UTF-8"
locale -a C C.UTF-8 POSIX en_US.utf8
Related terms[edit]
invalid locale name: "en_US.UTF-8"
locale-gen
command fromlocales
packagelocaledef
export
- LANG
- LOCALE in CREATE DATABASE
ALTER DATABASE database_name CHARACTER SET character_set_name COLLATE collation; CREATE DATABASE initdb SHOW LC_COLLATE
See also[edit]
Advertising: