UPDATE-LOCALE(8) System Manager's Manual UPDATE-LOCALE(8)NAME
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 <barbier@linuxfr.org>
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)NAME
locale.conf - Configuration file for locale settings
SYNOPSIS
/etc/locale.conf
DESCRIPTION
The /etc/locale.conf file configures system-wide locale settings. It is read at early boot by systemd(1).
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.
/etc/vconsole.conf is usually created and updated using systemd-localed.service(8). localectl(1) may be used to alter the settings in this
file during runtime from the command line. Use systemd-firstboot(1) to initialize them on mounted (but not booted) system images.
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 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=en_US.UTF-8
SEE ALSO systemd(1), locale(7), localectl(1), systemd-localed.service(8), systemd-firstboot(1)systemd 237LOCALE.CONF(5)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)