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

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Tue May 31 11:44:30 UTC 2016


Control: tags -1 + pending
Control: block -1 by 825396


Hi,

2016-05-26 17:26 David Kalnischkies:
>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…)

I am not sure if we should re-merge the bugs just yet, but the setting
of that locale in aptitude does not only affect the creation of
filenames but more things, so just reverting that change is not a good
option (it was supposed to fix other long-standing issues).

Assuming that the new apt relase will happen in a reasonable time-frame,
I guess that it's better just to wait for that.


Cheers.
-- 
Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>



More information about the Aptitude-devel mailing list