qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] gtk: Hardcode LC_CTYPE as C.utf-8


From: Alberto Garcia
Subject: Re: [Qemu-devel] [PATCH] gtk: Hardcode LC_CTYPE as C.utf-8
Date: Tue, 31 Jan 2017 12:22:42 +0100
User-agent: Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu)

On Tue 31 Jan 2017 11:09:45 AM CET, Kevin Wolf <address@hidden> wrote:

> Recently, however, glibc introduced a new locale "C.utf-8" that just
> uses UTF-8 as its charset, but otherwise leaves the semantics alone.
> Just setting the right character set is enough for our use case, so we
> can just hardcode this one without having to be afraid of nasty side
> effects.

>     setlocale(LC_MESSAGES, "");
> +   setlocale(LC_CTYPE, "C.utf-8");
>     bindtextdomain("qemu", CONFIG_QEMU_LOCALEDIR);

A couple of quick questions:

- Is it C.utf-8 or C.UTF-8 ? 'locale -a' shows only the latter in my
  system.

- When was this added? This bug seems to be still open:
  https://sourceware.org/bugzilla/show_bug.cgi?id=17318

Berto



reply via email to

[Prev in Thread] Current Thread [Next in Thread]