Difference between revisions of "Locale"

From wikieduonline
Jump to navigation Jump to search
(Created page with " locale -a C C.UTF-8 POSIX == See also == * {{linux}} Category:Linux")
 
 
(23 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{lowercase}}
 +
<code>locale</code> command from <code>[[libc-bin]]</code> 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"
  
  
Line 5: Line 23:
 
  C.UTF-8
 
  C.UTF-8
 
  POSIX
 
  POSIX
 +
en_US.utf8
 +
 +
 +
* <code>[[/etc/default/locale]]</code>
 +
 +
* <code>[[apt-get install -y locales]]</code>
  
  
 +
== Related terms ==
 +
* <code>invalid locale name: "en_US.UTF-8"</code>
 +
* <code>[[locale-gen]]</code> command from <code>[[locales]]</code> package
 +
* <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 ==
* {{linux}}
+
* {{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]

ALTER DATABASE database_name CHARACTER SET character_set_name COLLATE collation;
CREATE DATABASE
initdb
SHOW LC_COLLATE

See also[edit]

Advertising: