[packagekit] Unicode error with the yum backend

Tim Lauridsen tim.lauridsen at googlemail.com
Mon Feb 4 00:11:05 PST 2008


Richard Hughes wrote:
> 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?
> 
I think it is the best way to go. But i am not an expert in these matters.

Tim



More information about the PackageKit mailing list