On Wed, May 08, 2013 at 10:28:54AM +0100, Lars Wirzenius wrote: > On Wed, May 08, 2013 at 08:26:13AM +0000, Thorsten Glaser wrote: > > Kurt Roeckx <kurt <at> roeckx.be> writes: > > > > > > Not sure what a clean way of escaping the colon would be. > > > > > > apt already saves it with %3a in /var/cache/apt/archives/ > > > > %2a IIRC… but I consider this a bug personally and think apt > > should construct the filenames for the cache the same way > > the original official .deb building process does. > > > > Also, the percent sign is not usually handled well in filenames > > on “other OSes” either. > > Could you give a list of filesystems and/or operating systems on which > the percent sign is not allowed, or causes problems, in filenames? > > FAT, for example, is expected to allow % in filenames > (https://en.wikipedia.org/wiki/8.3_filename#Directory_table).
A test case (in a directory you can see via http://angband.pl/tmp/): for x in : %3A %3a; do echo "$x" >"foo${x}bar";done echo ok >baz%3Aquux Let's try to access a file with % : wget -q -O- http://angband.pl/tmp/foo%3Abar : -- should be %3A ! But, perhaps Apache tests both? Let's see: wget http://angband.pl/tmp/baz%3Aquux --2013-05-08 11:45:22-- http://angband.pl/tmp/baz%3Aquux Resolving angband.pl (angband.pl)... 2a03:9300:10::8, 89.206.35.136 Connecting to angband.pl (angband.pl)|2a03:9300:10::8|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2013-05-08 11:45:22 ERROR 404: Not Found. Nope. And serving .deb files via http isn't exactly a fringe use case... -- ᛊᚨᚾᛁᛏᚣ᛫ᛁᛊ᛫ᚠᛟᚱ᛫ᚦᛖ᛫ᚹᛖᚨᚲ -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20130508095548.ga29...@angband.pl