#558404 apt: Fails to load additional package list from sources.list.d/name.list if name is not ASCII

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Josef Spillner
Date:
2019-12-07 21:30:06 UTC
Severity:
wishlist
#558404#5
Date:
2009-11-28 17:04:08 UTC
From:
To:
I'm adding a package repository in /etc/apt.sources.list.d/fffff.list.
The next run of apt-get update picks it up.
Afterwards, I'm renaming this file to ффффф.list, the cyrillic counterpart.
Now apt-get doesn't pick it up anymore.

The part before .list should be matched in a way that it extends to Unicode
alphabet characters. I don't see any technical reasons to restrict this part
of the filename to ASCII.

#558404#10
Date:
2009-11-29 13:10:28 UTC
From:
To:
severity 558404 wishlist
thanks
	^[a-zA-Z0-9_.-]+$

The relevant parts are the lines 340-347 in apt-pkg/sourcelist.cc; removing
them would make the algorithm accept all files ending in .list.

#558404#17
Date:
2019-12-07 20:59:28 UTC
From:
To:
Hi,

I got bit by this same issue 10 years later.

The files in sources.list.d cannot have spaces in their names for this
same underlying reason.

This took a lot of time to figure out because this restriction doesn't
appear to be mentioned in the doc.

Regards,
Andrew