Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

update-locale(8) [debian man page]

UPDATE-LOCALE(8)					      System Manager's Manual						  UPDATE-LOCALE(8)

update-locale - Modify global locale settings SYNTAX
update-locale [OPTIONS] [var=locale | var] [...] DESCRIPTION
This program can be called by maintainer scripts when Debian packages are installed or removed, it updates the /etc/default/locale file to reflect changes in system configuration related to global locale settings. When variables have no value assigned, they are removed from the locale file. Some basic checks are performed to ensure that requested settings are valid. OPTIONS
--help Display an help message and exit. --reset Variables which are not set on command-line are cleared out. --locale-file FILE Define file containing locale variables. (Default: /etc/default/locale) --no-checks Do not perform sanity checks on locale variables. EXAMPLE
The command update-locale LANG=en_CA.UTF-8 LANGUAGE sets LANG to en_CA.UTF-8 and removes definitions for LANGUAGE. FILES
/etc/default/locale File where global locale settings are stored. AUTHOR
Denis Barbier <> SEE ALSO
locale-gen(8), locale(1) Debian GNU/Linux April 2006 UPDATE-LOCALE(8)

Check Out this Related Man Page

LOCALE.CONF(5)							    locale.conf 						    LOCALE.CONF(5)

locale.conf - configuration file for locale settings SYNOPSIS
/etc/locale.conf DESCRIPTION
The /etc/locale.conf file configures system-wide locale settings. The basic file format of locale.conf is a newline-separated list of environment-like shell-compatible variable assignments. It is possible to source the configuration from shell scripts, however, beyond mere variable assignments no shell features are supported, allowing applications to read the file without implementing a shell compatible execution engine. Note that the kernel command line options locale.LANG=, locale.LANGUAGE=, locale.LC_CTYPE=, locale.LC_NUMERIC=, locale.LC_TIME=, locale.LC_COLLATE=, locale.LC_MONETARY=, locale.LC_MESSAGES=, locale.LC_PAPER=, locale.LC_NAME=, locale.LC_ADDRESS=, locale.LC_TELEPHONE=, locale.LC_MEASUREMENT=, locale.LC_IDENTIFICATION= may be used to override the locale settings at boot. The locale settings configured in /etc/locale.conf are system-wide and are inherited by every service or user, unless overridden or unset by individual programs or individual users. Depending on the operating system other configuration files might be checked for locale configuration as well, however only as fallback. OPTIONS
The following locale settings may be set using /etc/locale.conf: LANG=, LANGUAGE=, LC_CTYPE=, LC_NUMERIC=, LC_TIME=, LC_COLLATE=, LC_MONETARY=, LC_MESSAGES=, LC_PAPER=, LC_NAME=, LC_ADDRESS=, LC_TELEPHONE=, LC_MEASUREMENT=, LC_IDENTIFICATION=. Note that LC_ALL may not be be configured in this file. For details about the meaning and semantics of these settings, refer to locale(7). EXAMPLE
Example 1. German locale with English messages /etc/locale.conf: LANG=de_DE.UTF-8 LC_MESSAGES=C SEE ALSO
systemd(1), locale(7) AUTHOR
Lennart Poettering <> Developer systemd 10/07/2013 LOCALE.CONF(5)
Man Page

13 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to change locale ?

Hi, I have Solaris 7 installed. When I give the command 'locale' from the box, I am getting all the environment variables as 'de' ! I want it to be in English. How do I change the locale ?? TIA, Srinivas. (1 Reply)
Discussion started by: snsrini
1 Replies

2. UNIX for Advanced & Expert Users

du -sk

Hi, runing du -sk * I have : du -sk * couldn't set locale correctly why ? What is the problem ? Many thanks. (0 Replies)
Discussion started by: big123456
0 Replies

3. AIX

Help needed for ps command in AIX

folks; I'm trying to run the command "stime" I couldn't get it to work right, but it seems like it's controlled by LANG variables, how can I change the LANG variables to make the result of stime or start_time appear right (if I use stime I get letter "A" under STIME & if I use "start_time" in my... (0 Replies)
Discussion started by: moe2266
0 Replies

4. UNIX for Dummies Questions & Answers


Hi, I'm using putty and when I try to write it writes | (or when I try to write , it writes i) I tried to change settings/translation of putty but with no success I have KSH # locale LANG= LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C"... (3 Replies)
Discussion started by: palmer18
3 Replies

5. Solaris

Sol 10 on SUN V490: Setting LOCALE

Hi all, We've upgraded/migrated our production server from Sol 9 on a Sun V480 to Sol 10 on a V490 server. How do I set/change the following values on Solaris 10: Solaris 9: $> locale LANG= LC_CTYPE=en_US.ISO8859-1 LC_NUMERIC=en_US.ISO8859-1 LC_TIME=en_US.ISO8859-1... (2 Replies)
Discussion started by: dewets
2 Replies

6. Red Hat

Command to set locale for my linux machine

Hi, I need to set a locale to my linux machine which has redhat enterprise linux 4 how should I do that. And also when i did locale -a, I have got three versions for each locale type with different .extensions like utf8,iso88951 and soon which file should I use for setting locale. ... (1 Reply)
Discussion started by: eamani_sun
1 Replies

7. Shell Programming and Scripting

help with file formatting

Hi, I have a file with below contents: AAA pqr,jkl,mnop,abcd BBB abc,pqrs,xyz,uvw, efgh,uvw, rpk CCC 123,456,789 Need output file as below: AAA,pqr,jkl,mnop,abcd BBB,abc,pqrs,xyz,uvw,efgh,uvw,rpk (18 Replies)
Discussion started by: prvnrk
18 Replies

8. Shell Programming and Scripting

Grep from file

Dear All I had below mention requirement. Kindly sugguest me possible ways. Thanks Regards Jaydeep IN PUT FILE: CELL BROADCAST SHORT MESSAGE SERVICE MESSAGE DATA ID CODE GS UPDATE MODE LANG MCO MCL NUMPAGES 50 1000 0 13 MML 1 1 TEXT ... (2 Replies)
Discussion started by: jaydeep_sadaria
2 Replies

9. Shell Programming and Scripting

Search in file and display

Dear All I had below mention requirement. Kindly sugguest me possible ways. Thanks Regards Jaydeep IN PUT FILE: CELL BROADCAST SHORT MESSAGE SERVICE MESSAGE DATA ID CODE GS UPDATE MODE LANG MCO MCL NUMPAGES 50 1000 0 13 MML 1 1 TEXT PAGE *999*1# SONGS4U@30/M- 1 (3 Replies)
Discussion started by: jaydeep_sadaria
3 Replies

10. Programming

strlen for UTF-8

My OS (Debian) and gcc use the UTF-8 locale. This code says that the char size is 1 byte but the size of 'a' is really 4 bytes. int main(void) { setlocale(LC_ALL, "en_US.UTF-8"); printf("Char size: %i\nSize of char 'a': %i\nSize of Euro sign '': %i\nLength of Euro sign: %i\n",... (8 Replies)
Discussion started by: cyler
8 Replies

11. Shell Programming and Scripting

Script to perform record format checks

Hi All, I have a requirement to perform the following checks. Input file is a "|" delimited file and looks like this. A|c1|c2|c3|.... B|G1|G2|G3.... C|H1|H2|H3... A|c4|c5|c6|.... B|G4|G5|G6.... C|H4|H5|H6... Now the check is to see if all the "A" records have a corresponding B... (7 Replies)
Discussion started by: gsjdrr
7 Replies

12. Shell Programming and Scripting

File manipulation

Hi , I am new to unix . I have some issues while File manipulation . I have file which is having block of data like USERID 'XYX' PASSWORD %12312323 CVZ dddas ADDRESS chbjhcd USERID 'BCD' PASSWORD %1s312323 CVZ dddas ADDRESS chbjhcd There are thousands of entries like these... (8 Replies)
Discussion started by: ameychawak
8 Replies

13. Shell Programming and Scripting

Need help in GREP command.....

Hi UNIX Gurus, I want to grep the WHERE clause mentioned in the SQL like below or from all the complez queries having this kind of logic. Basic intention is to check the record count impacted by the SQL (mentioned below). I am using this SQL, grep its where clause and creating another SELECT... (18 Replies)
Discussion started by: ustechie
18 Replies