375 lines
12 KiB
HTML
375 lines
12 KiB
HTML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!DOCTYPE html
|
||
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html lang="en-us" xml:lang="en-us">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<meta name="security" content="public" />
|
||
|
<meta name="Robots" content="index,follow" />
|
||
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
||
|
<meta name="DC.Type" content="concept" />
|
||
|
<meta name="DC.Title" content="Example: POSIX locale" />
|
||
|
<meta name="abstract" content="This example shows the POSIX (or C) locale categories and the source." />
|
||
|
<meta name="description" content="This example shows the POSIX (or C) locale categories and the source." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbagslocaleprogexamp.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbagslocalecatdetail.htm" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="rbagsposixexample" />
|
||
|
<meta name="DC.Language" content="en-us" />
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
||
|
<title>Example: POSIX locale</title>
|
||
|
</head>
|
||
|
<body id="rbagsposixexample"><a name="rbagsposixexample"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Example: POSIX locale</h1>
|
||
|
<div><p>This example shows the POSIX (or C) locale categories and the source.</p>
|
||
|
<p> It is published in its entirety because:</p>
|
||
|
<ul><li>It provides a locale example with source provided for all categories.</li>
|
||
|
<li>If you have not set a locale value in your C application program, the
|
||
|
default POSIX locale is then used.</li>
|
||
|
</ul>
|
||
|
<p>In either case, in the following listing, you are able to
|
||
|
look at the locale categories and view the source.</p>
|
||
|
<div class="note"><span class="notetitle">Note:</span> By using the code example, you agree to the terms of the <a href="codedisclaimer.htm">Code license and disclaimer information</a>.</div>
|
||
|
<pre> comment_char <percent-sign>
|
||
|
escape_char <slash>
|
||
|
|
||
|
|
||
|
%
|
||
|
% 5716SS1 (C) COPYRIGHT IBM<sup>(R)</sup> CORP. 1991,1996
|
||
|
% ALL RIGHTS RESERVED.
|
||
|
% US GOVERNMENT USERS RESTRICTED RIGHTS -
|
||
|
% USE, DUPLICATION OR DISCLOSURE RESTRICTED
|
||
|
% BY GSA ADP SCHEDULE CONTRACT WITH IBM CORP.
|
||
|
%
|
||
|
% LICENSED MATERIALS-PROPERTY OF IBM
|
||
|
%
|
||
|
% FILE NAME : POSIX
|
||
|
%
|
||
|
% COUNTRY/REGION: POSIX DEFAULT LOCALE
|
||
|
%
|
||
|
% LANGUAGES(S): NOT SPECIFIED
|
||
|
%
|
||
|
% DESCRIPTION: LOCALE SOURCE DEFINITION FILE.
|
||
|
%
|
||
|
|
||
|
LC_CTYPE
|
||
|
|
||
|
upper <A>;<B>;<C>;<D>;<E>;<F>;<G>;<H>;<I>;<J>;<K>;<L>;<M>;/
|
||
|
<N>;<O>;<P>;<Q>;<R>;<S>;<T>;<U>;<V>;<W>;<X>;<Y>;<Z>
|
||
|
|
||
|
|
||
|
lower <a>;<b>;<c>;<d>;<e>;<f>;<g>;<h>;<i>;<j>;<k>;<l>;<m>;/
|
||
|
<n>;<o>;<p>;<q>;<r>;<s>;<t>;<u>;<v>;<w>;<x>;<y>;<z>
|
||
|
|
||
|
|
||
|
space <tab>;<newline>;<vertical-tab>;<form-feed>;<carriage-return>;/
|
||
|
<space>
|
||
|
|
||
|
cntrl <NUL>;<SOH>;<STX>;<ETX>;<EOT>;<ENQ>;<ACK>;<alert>;<backspace>;/
|
||
|
<tab>;<newline>;<vertical-tab>;<form-feed>;<carriage-return>;/
|
||
|
<SO>;<SI>;<DLE>;<DC1>;<DC2>;<DC3>;<DC4>;<NAK>;<SYN>;<ETB>;/
|
||
|
<CAN>;<EM>;<SUB>;<ESC>;<IS4>;<IS3>;<IS2>;<IS1>;<DEL>
|
||
|
|
||
|
|
||
|
punct <exclamation-mark>;<quotation-mark>;<number-sign>;/
|
||
|
<dollar-sign>;<percent-sign>;<ampersand>;<apostrophe>;/
|
||
|
<left-parenthesis>;<right-parenthesis>;<asterisk>;<plus-sign>;/
|
||
|
<comma>;<hyphen>;<period>;<slash>;/
|
||
|
<colon>;<semicolon>;<less-than-sign>;/
|
||
|
<equals-sign>;<greater-than-sign>;<question-mark>;/
|
||
|
<commercial-at>;/
|
||
|
<left-square-bracket>;<backslash>;/
|
||
|
<right-square-bracket>;<circumflex>;/
|
||
|
<underscore>;<grave-accent>;/
|
||
|
<left-curly-bracket>;<vertical-line>;<right-curly-bracket>;/
|
||
|
<tilde>
|
||
|
|
||
|
digit <zero>;<one>;<two>;<three>;<four>;/
|
||
|
<five>;<six>;<seven>;<eight>;<nine>
|
||
|
|
||
|
xdigit <zero>;<one>;<two>;<three>;<four>;/
|
||
|
<five>;<six>;<seven>;<eight>;<nine>;/
|
||
|
<A>;<B>;<C>;<D>;<E>;<F>;/
|
||
|
<a>;<b>;<c>;<d>;<e>;<f>
|
||
|
|
||
|
blank <space>;/
|
||
|
<tab>
|
||
|
|
||
|
toupper (<a>,<A>);(<b>,<B>);(<c>,<C>);(<d>,<D>);(<e>,<E>);/
|
||
|
(<f>,<F>);(<g>,<G>);(<h>,<H>);(<i>,<I>);(<j>,<J>);/
|
||
|
(<k>,<K>);(<l>,<L>);(<m>,<M>);(<n>,<N>);(<o>,<O>);/
|
||
|
(<p>,<P>);(<q>,<Q>);(<r>,<R>);(<s>,<S>);(<t>,<T>);/
|
||
|
(<u>,<U>);(<v>,<V>);(<w>,<W>);(<x>,<X>);(<y>,<Y>);/
|
||
|
(<z>,<Z>)
|
||
|
|
||
|
tolower (<A>,<a>);(<B>,<b>);(<C>,<c>);(<D>,<d>);(<E>,<e>);/
|
||
|
(<F>,<f>);(<G>,<g>);(<H>,<h>);(<I>,<i>);(<J>,<j>);/
|
||
|
(<K>,<k>);(<L>,<l>);(<M>,<m>);(<N>,<n>);(<O>,<o>);/
|
||
|
(<P>,<p>);(<Q>,<q>);(<R>,<r>);(<S>,<s>);(<T>,<t>);/
|
||
|
(<U>,<u>);(<V>,<v>);(<W>,<w>);(<X>,<x>);(<Y>,<y>);/
|
||
|
(<Z>,<z>)
|
||
|
|
||
|
END LC_CTYPE
|
||
|
|
||
|
LC_COLLATE
|
||
|
|
||
|
order_start
|
||
|
|
||
|
<NUL>
|
||
|
<SOH>
|
||
|
<STX>
|
||
|
<ETX>
|
||
|
<EOT>
|
||
|
<ENQ>
|
||
|
<ACK>
|
||
|
<alert>
|
||
|
<backspace>
|
||
|
<tab>
|
||
|
<newline>
|
||
|
<vertical-tab>
|
||
|
<form-feed>
|
||
|
<carriage-return>
|
||
|
<SO>
|
||
|
<SI>
|
||
|
<DLE>
|
||
|
<DC1>
|
||
|
<DC2>
|
||
|
<DC3>
|
||
|
<DC4>
|
||
|
<NAK>
|
||
|
<SYN>
|
||
|
<ETB>
|
||
|
<CAN>
|
||
|
<EM>
|
||
|
<SUB>
|
||
|
<ESC>
|
||
|
<IS4>
|
||
|
<IS3>
|
||
|
<IS2>
|
||
|
<IS1>
|
||
|
<space>
|
||
|
<exclamation-mark>
|
||
|
<quotation-mark>
|
||
|
<number-sign>
|
||
|
<dollar-sign>
|
||
|
<percent-sign>
|
||
|
<ampersand>
|
||
|
<apostrophe>
|
||
|
<left-parenthesis>
|
||
|
<right-parenthesis>
|
||
|
<asterisk>
|
||
|
<plus-sign>
|
||
|
<comma>
|
||
|
<hyphen>
|
||
|
<period>
|
||
|
<slash>
|
||
|
<zero>
|
||
|
<one>
|
||
|
<two>
|
||
|
<three>
|
||
|
<four>
|
||
|
<five>
|
||
|
<six>
|
||
|
<seven>
|
||
|
<eight>
|
||
|
<nine>
|
||
|
<colon>
|
||
|
<semicolon>
|
||
|
<less-than-sign>
|
||
|
<equals-sign>
|
||
|
<greater-than-sign>
|
||
|
<question-mark>
|
||
|
<commercial-at>
|
||
|
<A>
|
||
|
<B>
|
||
|
<C>
|
||
|
<D>
|
||
|
<E>
|
||
|
<F>
|
||
|
<G>
|
||
|
<H>
|
||
|
<I>
|
||
|
<J>
|
||
|
<K>
|
||
|
<L>
|
||
|
<M>
|
||
|
<N>
|
||
|
<O>
|
||
|
<P>
|
||
|
<Q>
|
||
|
<R>
|
||
|
<S>
|
||
|
<T>
|
||
|
<U>
|
||
|
<V>
|
||
|
<W>
|
||
|
<X>
|
||
|
<Y>
|
||
|
<Z>
|
||
|
<left-square-bracket>
|
||
|
<backslash>
|
||
|
<right-square-bracket>
|
||
|
<circumflex>
|
||
|
<underscore>
|
||
|
<grave-accent>
|
||
|
<a>
|
||
|
<b>
|
||
|
<c>
|
||
|
<d>
|
||
|
<e>
|
||
|
<f>
|
||
|
<g>
|
||
|
<h>
|
||
|
<i>
|
||
|
<j>
|
||
|
<k>
|
||
|
<l>
|
||
|
<m>
|
||
|
<n>
|
||
|
<o>
|
||
|
<p>
|
||
|
<q>
|
||
|
<r>
|
||
|
<s>
|
||
|
<t>
|
||
|
<u>
|
||
|
<v>
|
||
|
<w>
|
||
|
<x>
|
||
|
<y>
|
||
|
<z>
|
||
|
<left-curly-bracket>
|
||
|
<vertical-line>
|
||
|
<right-curly-bracket>
|
||
|
<tilde>
|
||
|
<DEL>
|
||
|
UNDEFINED
|
||
|
|
||
|
order_end
|
||
|
|
||
|
END LC_COLLATE
|
||
|
|
||
|
LC_MONETARY
|
||
|
|
||
|
int_curr_symbol ""
|
||
|
currency_symbol ""
|
||
|
mon_decimal_point ""
|
||
|
mon_thousands_sep ""
|
||
|
mon_grouping -1
|
||
|
positive_sign ""
|
||
|
negative_sign ""
|
||
|
int_frac_digits -1
|
||
|
frac_digits -1
|
||
|
p_cs_precedes -1
|
||
|
p_sep_by_space -1
|
||
|
n_cs_precedes -1
|
||
|
n_sep_by_space -1
|
||
|
p_sign_posn -1
|
||
|
n_sign_posn -1
|
||
|
|
||
|
END LC_MONETARY
|
||
|
|
||
|
LC_NUMERIC
|
||
|
|
||
|
decimal_point "<period>" thousands_sep
|
||
|
"" grouping -1
|
||
|
|
||
|
END LC_NUMERIC
|
||
|
|
||
|
LC_TIME
|
||
|
|
||
|
abday "<S><u><n>";/
|
||
|
"<M><o><n>";/
|
||
|
"<T><u><e>";/
|
||
|
"<W><e><d>";/
|
||
|
"<T><h><u>";/
|
||
|
"<F><r><i>";/
|
||
|
"<S><a><t>"
|
||
|
|
||
|
day "<S><u><n><d><a><y>";/
|
||
|
"<M><o><n><d><a><y>";/
|
||
|
"<T><u><e><s><d><a><y>";/
|
||
|
"<W><e><d><n><e><s><d><a><y>";/
|
||
|
"<T><h><u><r><s><d><a><y>";/
|
||
|
"<F><r><i><d><a><y>";/
|
||
|
"<S><a><t><u><r><d><a><y>"
|
||
|
|
||
|
|
||
|
abmon "<J><a><n>";/
|
||
|
"<F><e><b>";/
|
||
|
"<M><a><r>";/
|
||
|
"<A><p><r>";/
|
||
|
"<M><a><y>";/
|
||
|
"<J><u><n>";/
|
||
|
"<J><u><l>";/
|
||
|
"<A><u><g>";/
|
||
|
"<S><e><p>";/
|
||
|
"<O><c><t>";/
|
||
|
"<N><o><v>";/
|
||
|
"<D><e><c>"
|
||
|
|
||
|
|
||
|
mon "<J><a><n><u><a><r><y>";/
|
||
|
"<F><e><b><r><u><a><r><y>";/
|
||
|
"<M><a><r><c><h>";/
|
||
|
"<A><p><r><i><l>";/
|
||
|
"<M><a><y>";/
|
||
|
"<J><u><n><e>";/
|
||
|
"<J><u><l><y>";/
|
||
|
"<A><u><g><u><s><t>";/
|
||
|
"<S><e><p><t><e><m><b><e><r>";/
|
||
|
"<O><c><t><o><b><e><r>";/
|
||
|
"<N><o><v><e><m><b><e><r>";/
|
||
|
"<D><e><c><e><m><b><e><r>"
|
||
|
|
||
|
|
||
|
d_t_fmt "%a %b %d %H:%M:%S %Z %Y"
|
||
|
|
||
|
d_fmt "%m//%d//%y"
|
||
|
|
||
|
t_fmt "%H:%M:%S"
|
||
|
|
||
|
am_pm "<A><M>";"<P><M>"
|
||
|
|
||
|
t_fmt_ampm "%I:%M:%S %p"
|
||
|
|
||
|
END LC_TIME
|
||
|
|
||
|
LC_MESSAGES
|
||
|
|
||
|
yesexpr "[yY][eE][sS]|[yY]"
|
||
|
noexpr "[nN][oO]|[nN]"
|
||
|
yesstr "yes"
|
||
|
nostr "no"
|
||
|
|
||
|
END LC_MESSAGES
|
||
|
|
||
|
LC_TOD
|
||
|
|
||
|
tzdiff 0
|
||
|
tname ""
|
||
|
dstname ""
|
||
|
dststart 0,0,0,0
|
||
|
dstend 0,0,0,0
|
||
|
dstshift 0
|
||
|
|
||
|
END LC_TOD </pre>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbagslocaleprogexamp.htm" title="In addition to the examples in this topic, The locale categories information provides programming examples for each of the different locale categories.">Examples: Locale programming</a></div>
|
||
|
</div>
|
||
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
||
|
<div><a href="rbagslocalecatdetail.htm" title="This table describes the locale categories that are supported on i5/OS.">Locale categories</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|