validlocale(8)
๐ validlocale(8) ๐
Manual name: validlocale(8). โจ
๐ธ NAME ๐ธ
validlocale - Test if a given locale is available ๐
๐ฆ SYNTAX ๐ฆ
validlocale <locale>
โจ DESCRIPTION โจ
okay so validlocale checks whether the locale you hand it is actually a valid one ๐ If it isn't, it prints the line you'd need to add to /etc/locale.gen on stdout, so locale-gen can generate that locale (assuming it exists at all ๐).
๐ FILES ๐
/usr/sbin/validlocale/usr/share/i18n/SUPPORTED
๐ ENVIRONMENT VARIABLES ๐
DEFAULTCHARSETโ this is the charset it assumes when the locale you gave it isn't in the supported list ๐ซถ
๐ EXAMPLES ๐
bestie, here's the vibe. If you pass in a valid locale, it tells you so on stderr ๐ฅฐ
% validlocale C
locale 'C' valid and available
Now if the locale is invalid (not generated, or just nonexistent ๐ญ), it tells you on stderr that it's not available, and then prints the line for /etc/locale.gen on stdout so you can get it generated ๐
% validlocale de_AU@euro
locale 'de_AU@euro' not available
de_AU@euro ISO-8859-15
๐ AUTHORS ๐
Petter Reinholdtsen <pere@hungry.com> ๐ง
๐ฅ SEE ALSO ๐ฅ
locale-gen(8), localedef(1), locale(1) ๐
Source credit goes to Petter Reinholdtsen, version 0.1 ๐ฆ Stay iconic, bestie, and go validate some locales ๐ ๐ซถโจ
๐ฆ where this page comes from
- debian bookworm: locales 2.36-9+deb12u14
- debian bookworm: locales 2.36-9+deb12u7
- debian trixie: locales 2.41-12+deb13u4 ยท LGPL-2.1-or-later
- ubuntu jammy: locales 2.35-0ubuntu3
- ubuntu jammy: locales 2.35-0ubuntu3.15
- ubuntu noble: locales 2.39-0ubuntu8
- ubuntu noble: locales 2.39-0ubuntu8.9
- ubuntu questing: locales 2.42-0ubuntu3
- ubuntu questing: locales 2.42-0ubuntu3.1 ยท LGPL-2.1-or-later
- ubuntu resolute: locales 2.43-2ubuntu2 ยท LGPL-2.1-or-later
- ubuntu resolute: locales 2.43-2ubuntu2.4 ยท LGPL-2.1-or-later
- ubuntu stonking: locales 2.44-1ubuntu2 ยท LGPL-2.1-or-later
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms