[issue22744] os.mkdir on Windows silently strips trailing blanks from directory names

R. David Murray report at bugs.python.org
Mon Oct 27 20:28:09 CET 2014


R. David Murray added the comment:

I would classify that as a bug in mkdir (it should raise an error).  The blank-elimination is almost certainly being done at the OS layer (windows) rather than the Python layer, though, and I doubt it is something we can fix at the Python layer for backward compatibility reasons.  (If we can, it would only be in 3.5, so I'm changing the version).

It is definitely *not* a bug in join.

Probably this issue should be closed as not a bug.

----------
components: +Windows
nosy: +r.david.murray, steve.dower, tim.golden, zach.ware
title: os.path.join on Windows creates invalid paths with spaces -> os.mkdir on Windows silently strips trailing blanks from directory names
versions: +Python 3.5 -Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22744>
_______________________________________


More information about the Python-bugs-list mailing list