Hi, On Tue, Sep 3, 2013 at 6:00 PM, Shih-Yuan Lee (FourDollars) <fourdoll...@gmail.com> wrote: > Hi Martin, > > On Tue, Sep 3, 2013 at 5:52 PM, Martin Pitt <martin.p...@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 _______________________________________________ devkit-devel mailing list devkit-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/devkit-devel