mailing list of musl libc
 help / color / mirror / code / Atom feed
* How to set UTF-8 as default
@ 2016-06-02 11:05 Remko Tronçon
  2016-06-02 14:50 ` FRIGN
  2016-06-02 15:01 ` Rich Felker
  0 siblings, 2 replies; 7+ messages in thread
From: Remko Tronçon @ 2016-06-02 11:05 UTC (permalink / raw)
  To: musl

[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-06-02 17:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-02 11:05 How to set UTF-8 as default Remko Tronçon
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

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).