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

David Kalnischkies david at kalnischkies.de
Thu May 26 16:26:58 UTC 2016


Control: clone -1 -2
Control: reassign -2 apt
Control: tags -2 - patch

On Thu, May 26, 2016 at 04:50:20PM +0200, Hilko Bengen wrote:
> 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.

That is a very good and equally strange find!

It is libapt which deals with the download, URI creating and all that,
so we should really make it so that it doesn't do funny things like
local dependent formatting of port numbers ever.

I will just clone this bug over to us (apt maintainers) as it seems easy
to solve in aptitude with a revert without requiring it to depend on
a (fixed) libapt version, but I haven't checked the implications, so if
it turns out to be hard feel free to merge back.

(Lets see how hard that is going to be in libapt…)


Best regards

David Kalnischkies
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/aptitude-devel/attachments/20160526/15e8bd8e/attachment.sig>


More information about the Aptitude-devel mailing list