[issue22472] OSErrors should use str and not repr on paths

R. David Murray report at bugs.python.org
Tue Sep 23 23:55:54 CEST 2014


R. David Murray added the comment:

I realized that after I hit submit.

However, this is a real problem on windows: I can't pass the error message back to the UI (in this case the log file) without first munging it, because the string is not a correct representation of the filename and the user will think they've entered the filename wrong to begin with (this is what really happened and what resulting this bug getting filed).

On windows, if I understand correctly, we don't normally have the problem of non-unicode filenames, so could we use str on windows only?

----------
nosy: +haypo

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


More information about the Python-bugs-list mailing list