Author CristiFati
Recipients CristiFati, eryksun, lars.gustaebel, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2020-10-07.09:33:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602063218.21.0.381690972777.issue36534@roundup.psfhosted.org>
In-reply-to
Content
As I see things now, there are multiple things (not necessarily related to this issue) to deal with:

1. Update *tarfile* and add *\_sanitize\_windows\_name* (name can change), that uses *pathlib.\_WindowsFlavour.reserved\_names* (or some public wrapper), and also handles control chars (pointed out by @eriksun), so that it covers as many cases as possible (I'd say all, but there's almost always one that gets away)

2. Fix *pathlib.\_WindowsFlavour.reserved\_names*

3. Apply the fix to *zipfile* as well

4. (optional) extract the sanitizing function into a common module (could be *pathlib*?) to avoid duplicates
History
Date User Action Args
2020-10-07 09:33:38CristiFatisetrecipients: + CristiFati, paul.moore, lars.gustaebel, vstinner, tim.golden, zach.ware, eryksun, steve.dower
2020-10-07 09:33:38CristiFatisetmessageid: <1602063218.21.0.381690972777.issue36534@roundup.psfhosted.org>
2020-10-07 09:33:38CristiFatilinkissue36534 messages
2020-10-07 09:33:37CristiFaticreate