On Mon, Dec 12, 2005 at 02:41:50PM -0500, Nick Lewycky wrote:
> Thomas Dickey wrote:
> > On Mon, Dec 12, 2005 at 04:10:15PM +0100, Nick Lewycky wrote:
> >
> >>uxterm tried to use locale en_CA.UTF-8
> >>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_ALL to default locale: No such file or directory
> >>
> > I did consider this. However (just refreshed my memory), the locale
> > program doesn't return an error code. It writes some text to stderr.
> > Given the limitations of locale (and keeping it as a portable script),
> > the only choice appeared to be to show what the script was attempting
> > to do, and why it failed.
> >
> > Perhaps this should be reassigned to the package owning "locale",
> > since that's producing the problem that you're reporting.
>
> How about a wishlist bug on libc6 (owning /usr/bin/locale) for returning
> an error code on error? Is there a standard covering the locale program?
http://www.unix.org/single_unix_specification/
(and a quick check of Solaris' manpage) gives this information:
EXIT STATUS
The following exit values are returned:
0 All the requested information was found and output
successfully.
>0 An error occurred.
which implies at least that it should be nonzero. (It wrote to stderr,
and did not succeed, so I'm inclined to regard it as an error).
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Attachment:
pgpgdnNmZkspZ.pgp
Description: PGP signature