From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10074 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Remko_Tron=C3=A7on?= Newsgroups: gmane.linux.lib.musl.general Subject: How to set UTF-8 as default Date: Thu, 2 Jun 2016 13:05:40 +0200 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0117613134f4390534499633 X-Trace: ger.gmane.org 1464867090 28226 80.91.229.3 (2 Jun 2016 11:31:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jun 2016 11:31:30 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10087-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jun 02 13:31:24 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 1b8QqO-0002qj-FP for gllmg-musl@m.gmane.org; Thu, 02 Jun 2016 13:31:20 +0200 Original-Received: (qmail 30570 invoked by uid 550); 2 Jun 2016 11:30:24 -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 13673 invoked from network); 2 Jun 2016 11:05:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=el-tramo.be; s=google; h=mime-version:date:message-id:subject:from:to; bh=XiieBBFuxcVNWJv+uLdawdOhmIpSLuPzADd3mMKtEVE=; b=h8VE4yTp04RP3PC94dCGTUUVykM/Zr7u0nZsPobUHQchMWlU97MIlRI8SM4Ge7/kv4 UN2+zdjxDflDYgJhj3l+C7So1QlVw3PFSCqEi2SAimjGnDy1TXHFt8nR231oeEbHW8uk k/040oNbMuE/4noflTa5hT61iltYgZ3JSFdjE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=XiieBBFuxcVNWJv+uLdawdOhmIpSLuPzADd3mMKtEVE=; b=U3Y8JAfvSZdyYp6BrPZqXqqH4HdaKAt1fmL6DcxIYYZsdvGK6ZaFY+pSR2QfuE6qSe v4oQ91FHo8TEupKEHTt+3AW+7PtdPeg+ljI4VNTV9+7d6gXrYc5ucrYQPZahSCGtWj9m LQKotqNregPn7OaNoV7YtCkXUGkEGfWJM6NSr2DSsx21qBzNxMhTSfWEiq480gDDNPKc Yjh8jHIKir4JMJd4E6TSwCiZYVDfwhBgi4UGDTfjZSByEOo8aixNVJoF5mb7twMIGMcF fJIucz1M/DWY8F9kEJPqSQgOFXiT01Kne/e2TVJETPnekdQc9U3mpJPh3b8WsIW0FzZB dnnw== X-Gm-Message-State: ALyK8tK8DjnCM72PYuUE3zAeqSc0wfdS1TI+qWJnWSTMlsrqwRcsG/UrypTVIuYzBqkbtXogiqQmpVjiW0p3VQ== X-Received: by 10.194.153.65 with SMTP id ve1mr8112997wjb.106.1464865540854; Thu, 02 Jun 2016 04:05:40 -0700 (PDT) X-Originating-IP: [84.194.176.162] Xref: news.gmane.org gmane.linux.lib.musl.general:10074 Archived-At: --089e0117613134f4390534499633 Content-Type: text/plain; charset=UTF-8 Hi, When I call `nl_langinfo`, it returns "ASCII" by default. I can call `setlocale(LC_CTYPE, "C.UTF-8")` to make it return "UTF-8", but I was wondering if there was a way through environment variables to make C.UTF-8 be the default. 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)`). thanks! Remko PS: I'm trying this on Alpine. --089e0117613134f4390534499633 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

When I call `nl_langinfo`, it retur= ns "ASCII" by default. I can call `setlocale(LC_CTYPE, "C.UT= F-8")` to make it return "UTF-8", but I was wondering if the= re was a way through environment variables to make C.UTF-8 be the default.= =C2=A0

I tried setting LC_CTYPE and LC_ALL to C.UT= F-8, but this doesn't seem to get picked up by `nl_langinfo` (or by `se= tlocale(LC_CTYPE, NULL)`).

thanks!
Remko=

PS: I'm trying this on Alpine.
--089e0117613134f4390534499633--