Ian Smith wrote:
The command

        locale -a | grep $LANG

should tell me whether the locale is installed, but doesn't, because it reports the name in a different format!

Ideas?

Try this:

$ LANG=foo
$ locale -a >/dev/null
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory

If you get any messages on stderr, then the locale is not supported.

nordi
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to