From owner-freebsd-current@FreeBSD.ORG Fri Jan 11 03:24:13 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B82519E5 for ; Fri, 11 Jan 2013 03:24:13 +0000 (UTC) (envelope-from delphij@gmail.com) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7ECAFB52 for ; Fri, 11 Jan 2013 03:24:13 +0000 (UTC) Received: by mail-qa0-f54.google.com with SMTP id j15so1173573qaq.20 for ; Thu, 10 Jan 2013 19:24:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=To8f/8xB2+plKOOZG6EYNSKWyi4eOCV4iUaFunoAqGc=; b=ZOTSCK224VdLAikdbarTRb//yeZIFqNqr+R/FEyApflvzJ3tVB4QTw+a8elt77sMCv AmlY7eqUvnPxBpPo0igo4ST2pPPwYQ7QnKDroPCXq9jg6VOhGGemqvOmt5RCF7vz/Npl JTkGYmps/nGTLtigQXF9aNOvaUJ/UxBbXQ5PHDsRvcD2BK4FGiD3OFn3aUqs3ByQ441U 7kzDsSTZFdPo2BUNPxnQPfuC8Jqo+KVTu/jrH580+PX8EtjMZFH6T2pSu8AorGVngkM3 yxeVeB7TU2e6zZzzFFBDn2822cKWqLze8Lbs1igPucMSB9CHdgRG4j881c90miRWalYB UEAg== MIME-Version: 1.0 Received: by 10.49.12.138 with SMTP id y10mr68420553qeb.64.1357874647156; Thu, 10 Jan 2013 19:24:07 -0800 (PST) Received: by 10.49.12.162 with HTTP; Thu, 10 Jan 2013 19:24:07 -0800 (PST) In-Reply-To: References: <50EF7554.70607@delphij.net> Date: Thu, 10 Jan 2013 19:24:07 -0800 Message-ID: Subject: Re: setlocale() for base system utilities From: Xin LI To: Zhihao Yuan Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Xin LI , "current@freebsd.org" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2013 03:24:13 -0000 On Thursday, January 10, 2013, Zhihao Yuan wrote: > On Thu, Jan 10, 2013 at 8:13 PM, Xin Li > > 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 https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die