From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10075 Path: news.gmane.org!not-for-mail From: FRIGN Newsgroups: gmane.linux.lib.musl.general Subject: Re: How to set UTF-8 as default Date: Thu, 2 Jun 2016 16:50:13 +0200 Message-ID: <20160602165013.161c482f7955bb78b977f1f7@frign.de> References: 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 1464879033 4530 80.91.229.3 (2 Jun 2016 14:50:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jun 2016 14:50:33 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10088-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jun 02 16:50:31 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 1b8Tx8-0007Cu-7L for gllmg-musl@m.gmane.org; Thu, 02 Jun 2016 16:50:30 +0200 Original-Received: (qmail 32245 invoked by uid 550); 2 Jun 2016 14:50:26 -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 32224 invoked from network); 2 Jun 2016 14:50:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1464879014; l=585; s=domk; d=frign.de; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References: In-Reply-To:Subject:To:From:Date; bh=D45LadfyNasP5mRy7EBvRY7DU9Fvnb788i0bb6NSfSs=; b=HcVy83pb0CwypTx7MmLK5ippIOxfPLUdzXDDVyTPcteEDsa4qhJIN7soxXFkxh4HtjB T08lEdcFFS6B3qJJsQ3hUkNdFQKfRr5zcxdFkVpNHnQqEXvjwWesc+xNxwgeNxH/GZQ3G C/OS+nr84YwL8G1jV4spACnl81cnwMaQfYM= X-RZG-AUTH: :KGkSVUa6cvg6QHOypuT/F//XhghIqIrrftbI6xdAzo0GYm6y2943wg== X-RZG-CLASS-ID: mo00 In-Reply-To: X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.28; x86_64-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:10075 Archived-At: 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 Cheers FRIGN -- FRIGN