115 lines
3.4 KiB
HTML
115 lines
3.4 KiB
HTML
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<title>locale - Get locale specific information</title>
|
||
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">>
|
||
|
</HEAD>
|
||
|
<body>
|
||
|
<!-- Java sync-link -->
|
||
|
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
||
|
|
||
|
<h2>locale - Get locale specific information</h2>
|
||
|
<p>
|
||
|
<strong>Synopsis</strong>
|
||
|
</p>
|
||
|
|
||
|
<p><strong>locale [ -a ]</strong></p>
|
||
|
|
||
|
<p><strong>locale [ -ck ]</strong> <em>name</em> ...</p>
|
||
|
|
||
|
<p><strong>Description</strong></p>
|
||
|
|
||
|
<p>The <strong>locale</strong> utility displays information about the current
|
||
|
locale environment to standard output.</p>
|
||
|
|
||
|
<p>In the first synopsis form, <strong>locale</strong> writes the names and values of
|
||
|
locale environment variables.
|
||
|
When the <strong>-a</strong> option is specified, <strong>locale</strong> writes the
|
||
|
names of all of the available locales on the system.</p>
|
||
|
|
||
|
<p>In the second synopsis form, <strong>locale</strong> writes detailed information about
|
||
|
the locale category or keyword specified by <em>name</em>.</p>
|
||
|
|
||
|
<p><strong>Options</strong></p>
|
||
|
<dl>
|
||
|
<dt><strong>-a</strong></dt>
|
||
|
|
||
|
<dd>Write information about all available locales.</dd>
|
||
|
|
||
|
<dt><strong>-c</strong></dt>
|
||
|
|
||
|
<dd>Display the names of the locale categories.</dd>
|
||
|
|
||
|
<dt><strong>-k</strong></dt>
|
||
|
|
||
|
<dd>Display the names of the locale keywords.</dd>
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
<p><strong>Operands</strong></p>
|
||
|
|
||
|
<p>
|
||
|
The <em>name</em> operand can be one of the following locale categories or keywords:
|
||
|
<ul>
|
||
|
<li>For category LC_CTYPE the keywords include alnum, alpha, blank, cntrl, digit, graph, lower, print,
|
||
|
punct, space, upper, xdigit, and codeset.</li>
|
||
|
<li>For category LC_MESSAGES the keywords include yesexpr, noexpr, yesstr, and nostr.</li>
|
||
|
<li>For category LC_MONETARY the keywords include int_curr_symbol, currency_symbol,
|
||
|
mon_decimal_point, mon_grouping, mon_thousands_sep, positive_sign, negative_sign,
|
||
|
int_frac_digits, frac_digits, p_cs_precedes, p_sep_by_space, n_cs_precedes,
|
||
|
n_sep_by_space, p_sign_posn, n_sign_posn, debit_sign, credit_sign,
|
||
|
left_parenthesis, right_parenthesis, and crncystr.</li>
|
||
|
<li>For category LC_NUMERIC the keywords include decimal_point, thousands_sep, grouping, and radixchar.</li>
|
||
|
<li>For category LC_TIME the keywords include abday, abday_1, abday_2, abday_3, abday_4, abday_5, abday_6,
|
||
|
abday_7, day, day_1, day_2, day_3, day_4, day_5, day_6, day_7, abmon, ab_mon1, abmon_2, abmon_3, abmon_4,
|
||
|
abmon_5, abmon_6, abmon_7, abmon_8, abmon_9, abmon_10, abmon_11, abmon_12, mon, mon_1 mon_2 mon_3 mon_4
|
||
|
mon_5 mon_6 mon_7 mon_8 mon_9 mon_10 mon_11 mon_12, d_t_fmt, d_fmt, t_fmt,
|
||
|
am_pm, am_str, pm_str, era, era_d_fmt, era_year, t_fmt_ampm, era_t_fmt, era_d_t_fmt, alt_digits.</li>
|
||
|
</ul>
|
||
|
</p>
|
||
|
|
||
|
<p><strong>Exit Status</strong></p>
|
||
|
|
||
|
<ul>
|
||
|
<li>0 when successful</li>
|
||
|
|
||
|
<li>>0 when unsuccessful</li>
|
||
|
</ul>
|
||
|
|
||
|
<p><strong>Related information</strong></p>
|
||
|
|
||
|
<ul>
|
||
|
<li><a href="iconv.htm">iconv - Convert characters from one CCSID to another CCSID</a></li>
|
||
|
|
||
|
<li><a href="tr.htm">tr - Translate characters</a></li>
|
||
|
|
||
|
<li><a href="../nls/rbagslocaleover.htm">Locale overview</a></li>
|
||
|
|
||
|
</ul>
|
||
|
|
||
|
<p><strong>Examples</strong></p>
|
||
|
|
||
|
<ol>
|
||
|
<li>Display the current values of the locale environment variables.
|
||
|
|
||
|
<pre>
|
||
|
locale
|
||
|
</pre>
|
||
|
</li>
|
||
|
|
||
|
<li>Display the list of available locales on the system.
|
||
|
|
||
|
<pre>
|
||
|
locale -a
|
||
|
</pre>
|
||
|
</li>
|
||
|
|
||
|
</ol>
|
||
|
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|