Visit The New, Modern Unix Linux Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #561
Difficulty: Easy
GDB is a command line debugger.
True or False?
Linux & Unix Commands - Search Man Pages

locale(1) [redhat man page]

LOCALE(1)						      General Commands Manual							 LOCALE(1)

NAME
locale - Get locale-specific information. SYNOPSIS
locale [ -a | -m] locale [ -ck ] name... DESCRIPTION
The locale program writes information about the current locale environment, or all locales, to standard output. When invoked without arguments, locale summarizes the current locale environment for each locale category defined by the LC_* environment variables. -a, --all-locales Write names of available locales. -m, --charmaps Write names of available charmaps. Output Format: -c, --category-name Write names of selected categories. -k, --keyword-name Write names and values of selected keywords. ENVIRONMENT VARIABLES
LC_CTYPE Character classification and case conversion. LC_COLLATE Collation order. LC_TIME Date and time formats. LC_NUMERIC Non-monetary numeric formats. LC_MONETARY Monetary formats. LC_MESSAGES Formats of informative and diagnostic messages and interactive responses. AUTHOR
locale is written by Ulrich Drepper for the GNU C Library. This manpage is written by Joel Klecker <espy@debian.org> for the Debian GNU/Linux system. 3rd Berkeley Distribution March 2001 LOCALE(1)

Check Out this Related Man Page

LOCALE(1)							 Debian GNU/Linux							 LOCALE(1)

NAME
locale - Get locale-specific information. SYNOPSIS
locale [ -a | -m] locale [ -ck ] name... DESCRIPTION
The locale program writes information about the current locale environment, or all locales, to standard output. When invoked without arguments, locale summarizes the current locale environment for each locale category defined by the LC_* environment variables. -a, --all-locales Write names of available locales. -m, --charmaps Write names of available charmaps. Output Format: -c, --category-name Write names of selected categories. -k, --keyword-name Write names and values of selected keywords. ENVIRONMENT VARIABLES
These environment variables affect each locale categories for all locale-aware programs: LC_CTYPE Character classification and case conversion. LC_COLLATE Collation order. LC_TIME Date and time formats. LC_NUMERIC Non-monetary numeric formats. LC_MONETARY Monetary formats. LC_MESSAGES Formats of informative and diagnostic messages and interactive responses. LC_PAPER Paper size. LC_NAME Name formats. LC_ADDRESS Address formats and location information. LC_TELEPHONE Telephone number formats. LC_MEASUREMENT Measurement units (Metric or Other). LC_IDENTIFICATION Metadata about the locale information. This environment variable can switch against multiple locale database: LOCPATH The directory where locale data is stored. By default, /usr/lib/locale is used. FILES
/usr/share/i18n/SUPPORTED List of supported values (and their associated encoding) for the locale name. This representation is recommended over --all-locales one, due being the system wide supported values. AUTHOR
locale was written by Ulrich Drepper for the GNU C Library. This manpage was written by Joel Klecker <espy@debian.org> for the Debian GNU/Linux system, and expanded by Alastair McKinstry <mck- instry@computer.org> SEE ALSO
locale(5), locale(7), setlocale(3) 3rd Berkeley Distribution 2004-12-16 LOCALE(1)

5 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. Solaris

Couldn't set locale correctly

hi All, I'm using sun OS 5.10. All locales are set to en_US.ISO8859-1 in /etc/profile/init file. I'm using one functional user.When I tried to "sesu - functionalUser",its giving me error like "Couldn't set locale correctly".In functional user profile i'm tring to set locales to en_US.After... (1 Reply)
Discussion started by: Kathraji
1 Replies

3. Homework & Coursework Questions

Script that copies one file to/over another

1. The problem statement, all variables and given/known data: Write a script that asks for 4 arguments, and the 1st and 3rd need to be -i and -o, and the 2nd/4th need to be file names. Technically, it's supposed to be run as: ./Lab_14.sh -i input.txt -o output.txt Depending on how many... (0 Replies)
Discussion started by: SoVi3t
0 Replies

4. UNIX for Dummies Questions & Answers

help me

Write a program that demonstrates use of signal handler using a) Wait b) Waitpid and explain the difference between the two based on your experience of computing Write code for the following. a) Write a program that will demonize a service (any service) and explain... (1 Reply)
Discussion started by: madhura
1 Replies

5. Shell Programming and Scripting

Script does not run in Chinese locale

Hi all, There may be an obvious answer to this that I am just overlooking. I have a shell script (sh) that I am running on different locales on z/OS. It executes fine on most locales except for Chinese (zh_CN) and Turkish (tr_TR). For these languages, the script does not even execute. For... (2 Replies)
Discussion started by: adam.wis
2 Replies

Featured Tech Videos