From owner-freebsd-current@FreeBSD.ORG Fri Jan 11 02:55:45 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 23AA04D0 for ; Fri, 11 Jan 2013 02:55:45 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by mx1.freebsd.org (Postfix) with ESMTP id ACF3A9A1 for ; Fri, 11 Jan 2013 02:55:44 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id gi11so988473lbb.33 for ; Thu, 10 Jan 2013 18:55:43 -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=M/yaCRw2Uap6pQSrBqJNDd52/7Z+eYzPeoIEr+OAT/o=; b=wJ+1OdIo0GsbYaduiwPoX0a36GVQX/zyn/Stc9m4m3EA68EXuQ/Xgt4t1vM3L+QBsY XkZ/fveH90WdXJN8gUkc3t8EjnHoqw9y1FGjb8WZc3b/YW8jRCIiQ43+bYBaIAh98WsW 9IaUPAPpatStK50AuZBsW+e1pFY0eMTrwznV7NdhVjN1BcFdXonT03YcynuY6VyXvCKv AAAaMRNfpyQQHAN97V2DcTJGNEH8mBdND7JLB1+dFm4fwiBzf+JDReu8SBiKLuBR0M7N xeukHIEtetKQHSJXDqaKvyrXZYt6BVO3m6zDP4Wlt8acjyCtGY6j1bRBtS44HCBk8X/x pYNQ== MIME-Version: 1.0 Received: by 10.112.46.70 with SMTP id t6mr30851197lbm.107.1357872943412; Thu, 10 Jan 2013 18:55:43 -0800 (PST) Received: by 10.112.75.131 with HTTP; Thu, 10 Jan 2013 18:55:43 -0800 (PST) In-Reply-To: <50EF7554.70607@delphij.net> References: <50EF7554.70607@delphij.net> Date: Thu, 10 Jan 2013 20:55:43 -0600 Message-ID: Subject: Re: setlocale() for base system utilities From: Zhihao Yuan To: Xin LI Content-Type: text/plain; charset=UTF-8 Cc: 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 02:55:45 -0000 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. -- Zhihao Yuan, ID lichray The best way to predict the future is to invent it. ___________________________________________________ 4BSD -- http://4bsd.biz/