Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

locale(1) [netbsd man page]

LOCALE(1)						    BSD General Commands Manual 						 LOCALE(1)

NAME
locale -- get locale-specific information SYNOPSIS
locale [-a | -m] locale [-ck] [keyword ...] DESCRIPTION
The locale utility is supposed to provide most locale specific information to the standard output. When locale is invoked without arguments it will print out a summary of the current locale environment depending on environment variable set- tings and internal status. When locale is invoked with arguments and no options specified it will print out keyword's value determined using current locale settings. The following options are available: -a Write names of all available locales. While looking for locales locale will respect the PATH_LOCALE environment variable, and use it instead of the system default locale directory. -c Write the category name for the selected keywords. -k Write the name and value of the selected keywords. -m Write names of all available charmaps. IMPLEMENTATION DETAILS
Special (FreeBSD- / NetBSD-specific) keyword list can be used to retrieve a human readable list of available keywords. DIAGNOSTICS
The locale utility exits 0 on success, and >0 if an error occurs. STANDARDS
locale conforms to IEEE Std 1003.1-2001 (``POSIX.1''). HISTORY
locale first appeared in NetBSD 2.0. AUTHORS
This implementation of locale was originally written by Alexey Zelkin <phantom@FreeBSD.org> for FreeBSD. BUGS
Since NetBSD does not support charmaps in their POSIX meaning locale emulates the -m option via CODESETs listing of all available locales. BSD
July 4, 2003 BSD

Check Out this Related Man Page

LOCALE(1)						    BSD General Commands Manual 						 LOCALE(1)

NAME
locale -- get locale-specific information SYNOPSIS
locale [-a | -m] locale -k list [prefix] locale [-ck] [keyword ...] DESCRIPTION
The locale utility is supposed to provide most locale specific information to the standard output. When locale is invoked without arguments, it will print out a summary of the current locale environment, subject to the environment settings and internal status. When locale is invoked with the keyword arguments, and no options are specified, it will print out the values of all keywords specified, using the current locale settings. The following options are available: -a Print names of all available locales. While looking for locales, locale will respect the PATH_LOCALE environment variable, and use it instead of the system's default locale directory. -c Print the category name for all selected keywords. If no keywords are selected, print the category name for all defined keywords. -k Print the names and values of all selected keywords. If no keywords are selected, print the names and values of all defined key- words. -m Print names of all available charmaps. IMPLEMENTATION NOTES
The special (FreeBSD specific) keyword list can be used to retrieve the human readable list of all available keywords. If so, a prefix string can be defined to limit the amount of keywords returned. EXIT STATUS
The locale utility exits 0 on success, and >0 if an error occurs. SEE ALSO
setlocale(3) STANDARDS
The locale utility conforms to IEEE Std 1003.1-2004 (``POSIX.1''). The LC_CTYPE, LC_MESSAGES and NLSPATH environment variables are not interpreted. BUGS
Since FreeBSD does not support charmaps in their POSIX meaning, locale emulates the -m option using the CODESETs listing of all available locales. BSD
November 18, 2012 BSD
Man Page

5 More Discussions You Might Find Interesting

1. 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

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

blz help me to do this..

1-Write a script that takes exactly one argument, a directory name. 2- If the number of arguments is more or less than one, print a usage message. 3-If the argument is not a directory, print another message. 4-For the given directory, print the five biggest files and the five files that... (0 Replies)
Discussion started by: S4K
0 Replies

4. 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

5. Shell Programming and Scripting

Multiple selective keyword Report

Dear All, I have a question on what is the best way to control and list out multiple selective keywords to print out the report Below is the Sample output of the listing Code1 Code1 Code1 Identifier "Job" Code2 Code2 Code2 Name "Impressive" Code3 Code3 Code3 AGT_Manual Code1... (3 Replies)
Discussion started by: ckwan
3 Replies