[PATCH] linux: Add UTF-8 encoding support.

Shih-Yuan Lee (FourDollars) fourdollars at gmail.com
Tue Sep 3 03:04:15 PDT 2013


Hi,

On Tue, Sep 3, 2013 at 6:00 PM, Shih-Yuan Lee (FourDollars)
<fourdollars at gmail.com> wrote:
> Hi Martin,
>
> On Tue, Sep 3, 2013 at 5:52 PM, Martin Pitt <martin.pitt at ubuntu.com> wrote:
>> Hello Shih-Yuan,
>>
>> Shih-Yuan Lee (FourDollars) [2013-09-03 17:44 +0800]:
>>> +     setlocale(LC_ALL, "en_US.utf8");
>>
>> Can you please describe further what this patch should achieve? It's
>> not at all guaranteed that this locale is available.
>
> It is because when I run ‘/usr/lib/upower/upowerd -v` and `upower --dump`.
> The UTF-8 string can not be shown correctly.
> Is there other general UTF-8 locale we can use?

How about using `setlocale(LC_ALL, "C.UTF-8")` instead?
Does it make sense?

Regards,
$4


More information about the devkit-devel mailing list