[packagekit] Unicode error with the yum backend

S.Çağlar Onur caglar at pardus.org.tr
Mon Feb 4 07:41:21 PST 2008


04 Şub 2008 Pts tarihinde, Richard Hughes şunları yazmıştı: 
> On Mon, 2008-02-04 at 07:48 +0000, Richard Hughes wrote:
> > I guess we have to switch the daemon to en_US.UTF-8 to get this stuff
> > back up the stack. Is this a sane idea?
> 
	> What about something quick and nasty like this:
> 
> diff --git a/src/pk-main.c b/src/pk-main.c
[...]
> +       /* we need this for UTF8" */
> +       setlocale (LC_ALL, "en_US.UTF-8");

I do not like that solution, although i'm not tested this one, at first look these problems may occur;

* First off all en_US.UTF-8 may not available on system (ex. Pardus only provides tr_TR.UTF-8 for Turkish installations, en_US-UTF-8 for English etc. and provides others as a seperate packages)
* en_US.UTF-8 breaks case conversion rules of Turkic languages (Turkish has 4 letter "I"s. English has only two, a lowercase dotted i and an 
uppercase dotless I. Turkish has lowercase and uppercase forms of both dotted  and dotless I. So tolower(I) != i and toupper(i) != I for us.)
* Running a daemon in other than C locale is not a common so i'm not sure its a good thing or not

Cheers
-- 
S.Çağlar Onur <caglar at pardus.org.tr>
http://cekirdek.pardus.org.tr/~caglar/

Linux is like living in a teepee. No Windows, no Gates and an Apache in house!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20080204/208d5159/attachment-0004.pgp>


More information about the PackageKit mailing list