Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2013 19:24:07 -0800
From:      Xin LI <delphij@gmail.com>
To:        Zhihao Yuan <lichray@gmail.com>
Cc:        Xin LI <d@delphij.net>, "current@freebsd.org" <current@freebsd.org>
Subject:   Re: setlocale() for base system utilities
Message-ID:  <CAGMYy3vLxHWawSiWsjzpYjr2G%2BduywjFrPsPrZ28psUa3gxXeA@mail.gmail.com>
In-Reply-To: <CAGsORuCMfWzhWOrDD_PXunKuXWLFLkt2mGaaFgXWsNJkd9wKxQ@mail.gmail.com>
References:  <50EF7554.70607@delphij.net> <CAGsORuCMfWzhWOrDD_PXunKuXWLFLkt2mGaaFgXWsNJkd9wKxQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, January 10, 2013, Zhihao Yuan wrote:

> On Thu, Jan 10, 2013 at 8:13 PM, Xin Li <delphij@delphij.net<javascript:;>>
> wrote:
> > I just noticed that many base system utilities, like rm, cat, etc.
> > does not do setlocale() at beginning.  Is this intentional or just
> > nobody have yet to done it?
>
> Enabling locale in the non-wide-char-awared utilities only makes
> difference for 8-bit locales, like ISO8859-*, but not multibyte
> ones.  From a user's point of view, this is an inconsistency.
>

It's inconsistency that some utilities use localized messages while some
do, too.  So I don't buy that argument.


-- 
Xin LI <delphij@delphij.net> https://www.delphij.net/
FreeBSD - The Power to Serve! Live free or die



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGMYy3vLxHWawSiWsjzpYjr2G%2BduywjFrPsPrZ28psUa3gxXeA>