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

Bug#742118: marked as done (python-apt: sources.list writing may fail; encoding of sources.list files (advice wanted))



Your message dated Thu, 20 Mar 2014 19:33:52 +0000
with message-id <E1WQiiu-0003IA-T9@franck.debian.org>
and subject line Bug#742118: fixed in python-apt 0.9.3.4
has caused the Debian Bug report #742118,
regarding python-apt: sources.list writing may fail; encoding of sources.list files (advice wanted)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
742118: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742118
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: python-apt
Version: 0.9.3.3
Severity: serious

On Sunday, I merged a bug fix from Ubuntu to force /etc/apt/sources.list
to be opened with utf-8 encoding. This was a mistake. The patch was broken,
and things can fail now for empty entries. It is reverted in git.

I also do not think that hardcoding UTF-8 is a sensible idea. Python 3
by default uses the encoding of the locale it is run in, and that is a
much better idea.

Of course, there are people who sometimes use the "C" locale (or other
locales with different encoding than their main locale) when running
tools using python-apt and then complain about failure because python-apt
cannot read files encoded in their main locale's encoding.

I thus think we should *not* hardcode an UTF-8 encoding in python-apt,
and should instead fix applications and users that run things in an
environment with a locale different from the normal one. It also matches
the behavior of Python itself.

PS.
I CCed debian-devel@l.d.o for further input on this topic, but I'm not
subscribed. So communication should either CC the bug; or if we do not
want to spam this, deity@l.d.o or my email. Thank you.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (980, 'unstable'), (500, 'unstable'), (100, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  libapt-inst1.5     0.9.16.1
ii  libapt-pkg4.12     0.9.16.1
ii  libc6              2.18-4
ii  libgcc1            1:4.8.2-16
ii  libstdc++6         4.8.2-16
ii  python             2.7.5-5
ii  python-apt-common  0.9.3.3

Versions of packages python-apt recommends:
ii  iso-codes    3.51-1
ii  lsb-release  4.1+Debian12
ii  xz-utils     5.1.1alpha+20120614-2

Versions of packages python-apt suggests:
ii  python-apt-dbg  0.9.3.3
pn  python-apt-doc  <none>
ii  python-gtk2     2.24.0-3+b1
pn  python-vte      <none>

-- no debconf information

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Please do not top-post if possible.

--- End Message ---
--- Begin Message ---
Source: python-apt
Source-Version: 0.9.3.4

We believe that the bug you reported is fixed in the latest version of
python-apt, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 742118@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Julian Andres Klode <jak@debian.org> (supplier of updated python-apt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 20 Mar 2014 16:48:12 +0100
Source: python-apt
Binary: python-apt python-apt-doc python-apt-dbg python-apt-dev python-apt-common python3-apt python3-apt-dbg
Architecture: source amd64 all
Version: 0.9.3.4
Distribution: unstable
Urgency: medium
Maintainer: APT Development Team <deity@lists.debian.org>
Changed-By: Julian Andres Klode <jak@debian.org>
Description: 
 python-apt - Python interface to libapt-pkg
 python-apt-common - Python interface to libapt-pkg (locales)
 python-apt-dbg - Python interface to libapt-pkg (debug extension)
 python-apt-dev - Python interface to libapt-pkg (development files)
 python-apt-doc - Python interface to libapt-pkg (API documentation)
 python3-apt - Python 3 interface to libapt-pkg
 python3-apt-dbg - Python 3 interface to libapt-pkg (debug extension)
Closes: 718330 742118
Changes: 
 python-apt (0.9.3.4) unstable; urgency=medium
 .
   * python/progress.cc: Fix InstallProgress to set child_pid (LP: #1177720)
   * python/progress.cc: Remove invalid checks for mixedCase methods
   * utils/get_*_mirrors*.py: Ensure failure if no mirrors were read
   * utils/get_*_mirrors*.py: Use sys.stderr.write instead of print
   * Support all compressors for data.tar/control.tar (Closes: #718330)
   * Revert "aptsources/sourceslist.py: ensure that our sources are opened with UTF-8"
     (Closes: #742118)
Checksums-Sha1: 
 6470f3f3cb38808e1e89a3b91a46604481b34e83 1554 python-apt_0.9.3.4.dsc
 915aff0eeaedea718282730f58088ec1da08d53a 306108 python-apt_0.9.3.4.tar.xz
 40736e4bca3d76ce5500f18f472c3b90d1379abf 163772 python-apt_0.9.3.4_amd64.deb
 034d1ee2ce3070ae2ac60e7b5d621429bc751e28 152236 python-apt-doc_0.9.3.4_all.deb
 0c2989c3b507c0149feb914410f3891289740dcc 2313588 python-apt-dbg_0.9.3.4_amd64.deb
 55ae8e287f6f6622aa779a50c3bf16baa8b285c8 7442 python-apt-dev_0.9.3.4_all.deb
 caaff683221ca8e9c5367e47ebaecea5e30ed147 87776 python-apt-common_0.9.3.4_all.deb
 4b7d0cebda5d876e321c247c3547ac96f997e4a1 171214 python3-apt_0.9.3.4_amd64.deb
 97acd93fffd46ab73346483f8e0cb75701aa7ece 4249464 python3-apt-dbg_0.9.3.4_amd64.deb
Checksums-Sha256: 
 293262c23b3a24d4451555f7830a2ddaf85e6921bc2ecd0b94940549f1504d67 1554 python-apt_0.9.3.4.dsc
 6e887c5e3a1a5fde666afb700e29ce29da3421c6fc3a840dfea9a30cb1056257 306108 python-apt_0.9.3.4.tar.xz
 6853c627267e2bdcfb83e2be26afe805183079acecfdf5ec9f12de3eec78ed87 163772 python-apt_0.9.3.4_amd64.deb
 70c7cbfaf5496b7441fe8eb139c0bec48616d8232d137a8e0fb4b6e5cea6f7d6 152236 python-apt-doc_0.9.3.4_all.deb
 9f0f5c881a9cc8c5f052e7cca42f35260ea356655e03db29ca41ddd243936656 2313588 python-apt-dbg_0.9.3.4_amd64.deb
 8f036150c8cc0669226c7c76e3934c3700ea0174c69502fa675df5c0d44858aa 7442 python-apt-dev_0.9.3.4_all.deb
 8dce16a98790b1ae4176cf297c0cc24f5cdd3cee3ec832b53d9b2587af96c41d 87776 python-apt-common_0.9.3.4_all.deb
 2e30650642778c2743a001c960e10b478bb14cb483da4cfa5b61f1afae6f6557 171214 python3-apt_0.9.3.4_amd64.deb
 916baa581623b8f1576ce212bef26900092828175141e751a9a87beaf0e048de 4249464 python3-apt-dbg_0.9.3.4_amd64.deb
Files: 
 3007b396a00fb332571aa6cca291ef95 1554 python standard python-apt_0.9.3.4.dsc
 6882d14e3d55b9bc75637b161f3665ed 306108 python standard python-apt_0.9.3.4.tar.xz
 e767fe18b9b523b793cd831a18ba4749 163772 python standard python-apt_0.9.3.4_amd64.deb
 afbb1a2787fd5f1d993e7eb212b75811 152236 doc optional python-apt-doc_0.9.3.4_all.deb
 e872ecc88da3bca3eea9ef76444126e2 2313588 debug extra python-apt-dbg_0.9.3.4_amd64.deb
 ac58081b77db490078cff0603696c33e 7442 python optional python-apt-dev_0.9.3.4_all.deb
 cbfe80a35190278d4607242c71c27f4d 87776 python optional python-apt-common_0.9.3.4_all.deb
 381e0938f35c35c671f7ab74f21ad1e2 171214 python optional python3-apt_0.9.3.4_amd64.deb
 3f691a9e0c5d6dd223f9946921168e19 4249464 debug extra python3-apt-dbg_0.9.3.4_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlMrP10ACgkQrCpf/gCCPsKnDACdGMNVZrLQXJZSLXOZAxSa5iNb
CmcAn0a705h259bW/MjOU9/tXWPneCbW
=AG6w
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: