From: "Remko Tronçon" <remko@el-tramo.be>
To: musl@lists.openwall.com
Subject: How to set UTF-8 as default
Date: Thu, 2 Jun 2016 13:05:40 +0200 [thread overview]
Message-ID: <CAJpZQQ6jjQbRRM5Bdr-NwLn4UqsHxbWwnd_EKYhj2Uv7507Aqg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 424 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 592 bytes --]
next reply other threads:[~2016-06-02 11:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-02 11:05 Remko Tronçon [this message]
2016-06-02 14:50 ` FRIGN
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=CAJpZQQ6jjQbRRM5Bdr-NwLn4UqsHxbWwnd_EKYhj2Uv7507Aqg@mail.gmail.com \
--to=remko@el-tramo.be \
--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).