Eric Blake <ebl...@redhat.com> さんはかきました:

> On 01/31/2017 05:22 AM, Alberto Garcia wrote:
>> On Tue 31 Jan 2017 11:09:45 AM CET, Kevin Wolf <kw...@redhat.com> 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.
>
> At least Cygwin has C.UTF-8, but not C.utf-8.  Furthermore, since my
> system defaults to en_US.UTF-8, I would expect the upper-case variant
> for the character set name across all locales.

Yes, I think it is more compatible to use the C.UTF-8 spelling because
it uses the “official” spelling of “UTF-8”.

-- 
Mike FABIAN <mfab...@redhat.com>
睡眠不足はいい仕事の敵だ。

Reply via email to