logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

validlocale - Test if a given locale is available

Authors

       Petter Reinholdtsen <pere@hungry.com>

Description

       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).

Environment Variables

DEFAULTCHARSET
              Which charset to assume if the given locale is missing from the list of supported locales.

Examples

       If you give a valid locale as parameter, it outputs a string specifying this on stderr:

              % validlocale C
              locale 'C' valid and available

       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:

              % validlocale de_AU@euro
              locale 'de_AU@euro' not available
              de_AU@euro ISO-8859-15

Files

/usr/sbin/validlocale/usr/share/i18n/SUPPORTED

Name

       validlocale - Test if a given locale is available

See Also

locale-gen(8), localedef(1), locale(1)

Petter Reinholdtsen                                    0.1                                        validlocale(8)

Syntax

       validlocale <locale>

See Also