man-pages/man8/validlocale.8.html
2021-03-31 01:06:50 +01:00

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">&nbsp;</A>
<H2>NAME</H2>
<P>
validlocale - Test if a given locale is available
<A NAME="lbAC">&nbsp;</A>
<H2>SYNTAX</H2>
<P>
validlocale &lt;<I>locale</I>&gt;
<A NAME="lbAD">&nbsp;</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">&nbsp;</A>
<H2>FILES</H2>
<P>
<I>/usr/sbin/validlocale</I>
<BR>
<I>/usr/share/i18n/SUPPORTED</I>
<A NAME="lbAF">&nbsp;</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">&nbsp;</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">&nbsp;</A>
<H2>AUTHORS</H2>
<P>
Petter Reinholdtsen &lt;<A HREF="mailto:pere@hungry.com">pere@hungry.com</A>&gt;
<A NAME="lbAI">&nbsp;</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">&nbsp;</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>