114 lines
2.6 KiB
HTML
114 lines
2.6 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of validlocale</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>validlocale</H1>
|
|
Section: (8)<BR>Updated: 0.1<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
<P>
|
|
|
|
validlocale - Test if a given locale is available
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNTAX</H2>
|
|
|
|
<P>
|
|
|
|
validlocale <<I>locale</I>>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
Test if the locale given as argument is a valid locale. If it
|
|
isn't, print on stdout the string to add to /etc/locale.gen to make
|
|
locale-gen generate the locale (if it exists at all).
|
|
<A NAME="lbAE"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<P>
|
|
|
|
<I>/usr/sbin/validlocale</I>
|
|
<BR>
|
|
|
|
<I>/usr/share/i18n/SUPPORTED</I>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>ENVIRONMENT VARIABLES</H2>
|
|
|
|
<P>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>DEFAULTCHARSET</B><DD>
|
|
Which charset to assume if the given locale is missing from the
|
|
list of supported locales.
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>EXAMPLES</H2>
|
|
|
|
<P>
|
|
|
|
If you give a valid locale as parameter, it outputs a string
|
|
specifying this on stderr:
|
|
<P>
|
|
|
|
<DL COMPACT>
|
|
<DT id="2"><DD>
|
|
% validlocale C
|
|
<BR>
|
|
|
|
locale 'C' valid and available
|
|
</DL>
|
|
<P>
|
|
|
|
When given a invalid (not generated or just nonexistent), it
|
|
outputs a string on stderr telling that this is an invalid locale, and a string to stdout with the string to add to /etc/locale.gen
|
|
to have this locale generated:
|
|
<P>
|
|
|
|
<DL COMPACT>
|
|
<DT id="3"><DD>
|
|
% validlocale <A HREF="mailto:de_AU@euro">de_AU@euro</A>
|
|
<BR>
|
|
|
|
locale '<A HREF="mailto:de_AU@euro">de_AU@euro</A>' not available
|
|
<BR>
|
|
|
|
<A HREF="mailto:de_AU@euro">de_AU@euro</A> ISO-8859-15
|
|
</DL>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>AUTHORS</H2>
|
|
|
|
<P>
|
|
|
|
Petter Reinholdtsen <<A HREF="mailto:pere@hungry.com">pere@hungry.com</A>>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<P>
|
|
|
|
<A HREF="/cgi-bin/man/man2html?8+locale-gen">locale-gen</A>(8), <A HREF="/cgi-bin/man/man2html?1+localedef">localedef</A>(1), <A HREF="/cgi-bin/man/man2html?1+locale">locale</A>(1)
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="4"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="5"><A HREF="#lbAC">SYNTAX</A><DD>
|
|
<DT id="6"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="7"><A HREF="#lbAE">FILES</A><DD>
|
|
<DT id="8"><A HREF="#lbAF">ENVIRONMENT VARIABLES</A><DD>
|
|
<DT id="9"><A HREF="#lbAG">EXAMPLES</A><DD>
|
|
<DT id="10"><A HREF="#lbAH">AUTHORS</A><DD>
|
|
<DT id="11"><A HREF="#lbAI">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:18 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|