nordi wrote:
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.

Nope, that doesn't work on Solaris. But Solaris formats its output so that your original instruction works:

$ locale -a | grep $LANG
de_DE.UTF-8
[EMAIL PROTECTED]

Looks like Linux and Solaris use different output formats, and who knows what the other Unixes are doing.

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

Reply via email to