filenames ending with whitespace character
is it allowed for any file being installed by any package in the Ubuntu repository to end with any whitespace character, especially the space character (ASCII 32)? allowed, as in a policy not to distribute a package that installs such files.
the purpose for knowing is to correctly parse the lists of file paths found in /var/lib/apt/lists/*.lz4 after decompression. parsing these lists requires know the length of each path. that length cannot be determined if the name ends in a space character due to a varying number of spaces following some paths in these lists. a name ending in a space character would be very unusual but is not impossible in the usual file systems seen in Linux or Unix. depending on how parsing code is written, other whitespace characters could also affect the parsing.
Mask wearer, Social distancer, System Administrator, Programmer, Linux advocate, Command Line user, Ham radio operator (KA9WGN/8, tech), Photographer (hobby), occasional tweetXer