Ralph wrote:
Perhaps nmh should just issue a stderr warning and then continue, à
la perl, but a bit more quietly?
$ LC_ALL=foo perl -e 42
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "foo",
LANG = "en_GB.utf8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
$ echo $?
0
I did this:
$ LC_ALL=foo mhparam
setlocale failed, check your LC_ALL, LC_CTYPE, and LANG environment
variables, continuing...
glibc setlocale() uses those environment variables, but not
LANGUAGE. So, "LANGUAGE=foo perl -e 42" doesn't trigger the
warning on my Linux box. But it's in the warning message when
it does get triggered, like yours above.
David
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers