blob: ad1d909da1156a82c356f42353fa56d9ed658703 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
.TH "validlocale" "8" "0.1" "Petter Reinholdtsen" ""
.SH "NAME"
.LP
validlocale \- Test if a given locale is available
.SH "SYNTAX"
.LP
validlocale <\fIlocale\fP>
.SH "DESCRIPTION"
.LP
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).
.SH "FILES"
.LP
\fI/usr/sbin/validlocale\fP
.br
\fI/usr/share/i18n/SUPPORTED\fP
.SH "ENVIRONMENT VARIABLES"
.LP
.TP
\fBDEFAULTCHARSET\fP
Which charset to assume if the given locale is missing from the
list of supported locales.
.SH "EXAMPLES"
.LP
If you give a valid locale as parameter, it outputs a string
specifying this on stderr:
.LP
.IP
% validlocale C
.br
locale 'C' valid and available
.LP
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:
.LP
.IP
% validlocale de_AU@euro
.br
locale 'de_AU@euro' not available
.br
de_AU@euro ISO\-8859\-15
.SH "AUTHORS"
.LP
Petter Reinholdtsen <pere@hungry.com>
.SH "SEE ALSO"
.LP
locale\-gen(8), localedef(1), locale(1)
|