reassign 471166 apt 0.7.11 thanks On Sun, Mar 16, 2008 at 12:27:41PM +0000, Enrico Zini wrote: > Package: python-apt > Version: 0.7.5 > Severity: normal > > Hello, > > thanks for python-apt. I'm trying to use it to read translated > descriptions to index them in apt-xapian-index, but I stumbled on this: > > $ ipython > import locale > import apt > locale.setlocale(locale.LC_MESSAGES, "it_IT.UTF-8") > c = apt.Cache() > c["zip"].description > > gives: > > Out[11]: u'Acrhiviatore di file .zip\nQuesto\n' > > apt-cache show zip gives instead: > > Description: Acrhiviatore di file .zip > Questo è il programma zip di InfoZIP. Produce file che sono pienamente > compatibili con il programma popolare PKZIP; comunque, le opzioni a > riga di comando non sono identiche. In altre parole, il risultato > finale è lo stesso ma i metodi differiscono. :-) > . > Questa versione supporta la crittografia. > > > Ciao, > > Enrico This is an apt issue. You can check it when you set LANG=C, and LC_MESSAGES to your locale. Running apt-cache show PKG, now shows exactly the same behaviour. To fix this problem at least in your python programs for now, use locale.setlocale(locale.LC_ALL, "it_IT.UTF-8") (although this may not be a good idea depending on what you want to do). I am reassigning it to apt, in the version you used when you reported the bug. -- Julian Andres Klode - Free Software Developer Debian Developer - Contributing Member of SPI Ubuntu Member - Fellow of FSFE Website: http://jak-linux.org/ XMPP: juliank@jabber.org Debian: http://www.debian.org/ SPI: http://www.spi-inc.org/ Ubuntu: http://www.ubuntu.com/ FSFE: http://www.fsfe.org/
Attachment:
signature.asc
Description: Digital signature