[issue18221] abspath strips trailing spaces on win32

Tim Golden report at bugs.python.org
Thu Oct 24 14:41:31 CEST 2013


Tim Golden added the comment:

I'm going to close this as won't fix: the underlying implementation is simply calling GetFullPathName and removal of trailing spaces doesn't seem too surprising a result. It is possible to manipulate such files using Windows' special \\?\C:\... syntax.

While I admit this could catch you out if you were trying to nail an illegal-but-existent filename, we try not to put warnings in the docs for every cornercase lest they become cluttered.

----------

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


More information about the Python-bugs-list mailing list