[packagekit] Unicode error with the yum backend

Richard Hughes hughsient at gmail.com
Sun Feb 3 23:48:03 PST 2008


On Mon, 2008-02-04 at 08:31 +0100, Tim Lauridsen wrote:
> [tim at deathstar ~]$ echo $LANG
> en_US.UTF-8

Ahh. The daemon runs in C locale:

[hughsie at hughsie-laptop yum]$ export LANG=C    
[hughsie at hughsie-laptop yum]$ sudo ./resolve.py none ipw2100-firmware
allow-cancel    true
no-percentage-updates
status  query
error   internal-error  Error Type: <type
'exceptions.UnicodeEncodeError'>;Error Value: 'ascii' codec can't encode
character u'\xae' in position 76: ordinal not in range(128);  

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?

Richard.





More information about the PackageKit mailing list