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

2013-09-03 Thread Martin Pitt
Shih-Yuan Lee (FourDollars) [2013-09-03 18:04 +0800]: > > It is because when I run ‘/usr/lib/upower/upowerd -v` and `upower --dump`. Is upower --dump actually wrong? The way how upowerd reads attribute names should not depend on the locale that upowerd runs under; if it does, we need to fix that p

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

2013-09-03 Thread Shih-Yuan Lee (FourDollars)
Hi, On Tue, Sep 3, 2013 at 6:00 PM, Shih-Yuan Lee (FourDollars) wrote: > Hi Martin, > > On Tue, Sep 3, 2013 at 5:52 PM, Martin Pitt wrote: >> Hello Shih-Yuan, >> >> Shih-Yuan Lee (FourDollars) [2013-09-03 17:44 +0800]: >>> + setlocale(LC_ALL, "en_US.utf8"); >> >> Can you please describe furt

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

2013-09-03 Thread Shih-Yuan Lee (FourDollars)
Hi Martin, On Tue, Sep 3, 2013 at 5:52 PM, Martin Pitt 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

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

2013-09-03 Thread Martin Pitt
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. Thanks, Martin -- Martin Pitt| http:

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

2013-09-03 Thread Shih-Yuan Lee (FourDollars)
From: "Shih-Yuan Lee (FourDollars)" --- src/up-main.c |2 ++ tools/up-tool.c |2 ++ 2 files changed, 4 insertions(+) diff --git a/src/up-main.c b/src/up-main.c index a7e6eb6..6706053 100644 --- a/src/up-main.c +++ b/src/up-main.c @@ -32,6 +32,7 @@ #include #include #include +#in