[Aptitude-devel] Bug#825384: aptitude: thousands' grouping characters in port numbers

Hilko Bengen bengen at debian.org
Thu May 26 14:50:20 UTC 2016


Package: aptitude
Version: 0.8.1-1
Severity: important
Tags: patch

Dear Maintainer,

A while back, I noticed that aptitude and apt could no longer be used
together on my system: If aptitude had been used to update Packages and
Sources lists too, apt would not see the lists. (And vice versa.)

This happened because aptitude now formats port numbers in URLs with
thousands' grouping characters as defined by the locale (in this case
en_US.utf-8):

,----
| $ sudo aptitude update
| Hit http://localhost:9,999/debian sid InRelease
| Get: 1 http://localhost:9,999/debian stretch InRelease [232 kB]
| [...]
| $ sudo LANG=C aptitude update
| Get: 1 http://localhost:9999/debian sid InRelease [205 kB]
| Get: 2 http://localhost:9999/debian stretch InRelease [232 kB]
| [...]
`----

The extra comma also ended up as part of the filenames in
/var/lib/apt/lists, which explains the described behavior.

Version 0.7.5-3 does not have this problem.

Further investigation shows that commit
198c06d1d481728147f61c1482ac7e52337363db (Change filename of lock file
from tag "literal" to "filename") contains a seemingly unrelated change
where setlocale() is replaced with a call to the C++ stdlib.

Reverting that bit fixes the problem for me; I have attached a patch.

Cheers,
-Hilko

-- Package-specific info:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://lists.alioth.debian.org/pipermail/aptitude-devel/attachments/20160526/7e959ebf/attachment.ksh>
-------------- next part --------------

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

Kernel: Linux 4.4.0-1-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages aptitude depends on:
ii  aptitude-common            0.8.1-1
ii  libapt-pkg5.0              1.2.12
ii  libboost-filesystem1.58.0  1.58.0+dfsg-5+b1
ii  libboost-iostreams1.58.0   1.58.0+dfsg-5+b1
ii  libboost-system1.58.0      1.58.0+dfsg-5+b1
ii  libc6                      2.22-9
ii  libcwidget3v5              0.5.17-4+b1
ii  libgcc1                    1:6.1.1-4
ii  libncursesw5               6.0+20160319-1
ii  libsigc++-2.0-0v5          2.8.0-1
ii  libsqlite3-0               3.13.0-1
ii  libstdc++6                 6.1.1-4
ii  libtinfo5                  6.0+20160319-1
ii  libxapian22v5              1.2.23-1

Versions of packages aptitude recommends:
ii  libparse-debianchangelog-perl  1.2.0-8
ii  sensible-utils                 0.0.9

Versions of packages aptitude suggests:
ii  apt-xapian-index                0.47+nmu2
ii  aptitude-doc-en [aptitude-doc]  0.8.1-1
pn  debtags                         <none>
pn  tasksel                         <none>

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: revert-setlocale.patch
Type: text/x-diff
Size: 755 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/aptitude-devel/attachments/20160526/7e959ebf/attachment.patch>


More information about the Aptitude-devel mailing list