[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#471166: python-apt: Translated descriptions are truncated on non-ascii characters



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

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.7-6- 0.7.11        Advanced front-end for dpkg
ii  apt-utils [libapt-inst-lib 0.7.11        APT utility programs
ii  libc6                      2.7-6         GNU C Library: Shared libraries
ii  libgcc1                    1:4.3.0~rc2-1 GCC support library
ii  libstdc++6                 4.3.0~rc2-1   The GNU Standard C++ Library v3
ii  lsb-release                3.1-24        Linux Standard Base version report
ii  python                     2.4.4-6       An interactive high-level object-o
ii  python-central             0.5.15-0.1    register and build utility for Pyt

python-apt recommends no packages.

-- no debconf information



Reply to: