From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10077 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: How to set UTF-8 as default Date: Thu, 2 Jun 2016 11:03:15 -0400 Message-ID: <20160602150315.GK10893@brightrain.aerifal.cx> References: <20160602165013.161c482f7955bb78b977f1f7@frign.de> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1464879815 18195 80.91.229.3 (2 Jun 2016 15:03:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jun 2016 15:03:35 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10090-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jun 02 17:03:35 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1b8U9m-000071-AU for gllmg-musl@m.gmane.org; Thu, 02 Jun 2016 17:03:34 +0200 Original-Received: (qmail 9860 invoked by uid 550); 2 Jun 2016 15:03:32 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 9808 invoked from network); 2 Jun 2016 15:03:27 -0000 Content-Disposition: inline In-Reply-To: <20160602165013.161c482f7955bb78b977f1f7@frign.de> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10077 Archived-At: On Thu, Jun 02, 2016 at 04:50:13PM +0200, FRIGN wrote: > On Thu, 2 Jun 2016 13:05:40 +0200 > Remko Tronçon wrote: > > Hey Remko, > > > I tried setting LC_CTYPE and LC_ALL to C.UTF-8, but this doesn't seem to > > get picked up by `nl_langinfo` (or by `setlocale(LC_CTYPE, NULL)`). > > yeah, because that's wrong. You either use the C-locale (ASCII international) > or use the locales standard definition using e.g. en_US.UTF-8. > To get a "clean" UTF-8 environment, use (provided you have locales) > > export LC_ALL=en_US.UTF-8 > export LANG=en_US.UTF-8 > export LANGUAGE=en_US.UTF-8 This isn't necessary and will possibly do more than the user wants in the future, once LC_MONETARY and LC_COLLATE have non-stub functionality. Wanting UTF-8 to work does not mean you want US dollars or English collation order, etc. Rich