mailing list of musl libc
 help / color / mirror / code / Atom feed
From: FRIGN <dev@frign.de>
To: musl@lists.openwall.com
Subject: Re: How to set UTF-8 as default
Date: Thu, 2 Jun 2016 16:50:13 +0200	[thread overview]
Message-ID: <20160602165013.161c482f7955bb78b977f1f7@frign.de> (raw)
In-Reply-To: <CAJpZQQ6jjQbRRM5Bdr-NwLn4UqsHxbWwnd_EKYhj2Uv7507Aqg@mail.gmail.com>

On Thu, 2 Jun 2016 13:05:40 +0200
Remko Tronçon <remko@el-tramo.be> 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 <dev@frign.de>


  reply	other threads:[~2016-06-02 14:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-02 11:05 Remko Tronçon
2016-06-02 14:50 ` FRIGN [this message]
2016-06-02 15:03   ` Rich Felker
2016-06-02 15:01 ` Rich Felker
2016-06-02 15:40   ` Remko Tronçon
2016-06-02 17:10     ` Markus Wichmann
2016-06-02 17:32       ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160602165013.161c482f7955bb78b977f1f7@frign.de \
    --to=dev@frign.de \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).