[issue13247] os.path.abspath returns unicode paths as question marks
Atsuo Ishimoto
report at bugs.python.org
Wed Oct 26 10:01:34 CEST 2011
Atsuo Ishimoto <ishimoto at gembook.org> added the comment:
On Wed, Oct 26, 2011 at 3:36 PM, Yuval Greenfield
<report at bugs.python.org> wrote:
> If the current situation isn't fixed though - you just can't use the resulting path for almost anything. Do you have a use case Ishimoto?
I don't have use case. But does raising UnicodeEncodeError fix
problems? It could break existing code, but I don't see much
difference over WindowsError caused by the broken file names.
> The fact is you shouldn't be doing os.path.abspath(b'.') in windows to begin with.
Agreed. So I think adding Windows specific check to Byte API does not
improve situation, but increase complexity of std lib.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13247>
_______________________________________
More information about the Python-bugs-list
mailing list