Amaury Forgeot d'Arc <[email protected]> added the comment:

> I don't know yet how Windows do decode bytes filenames
> (especially how it handles undecodable bytes), 
> I suppose that it uses MultiByteToWideChar using cp=CP_ACP and flags=0.
It's likely, yes.  But you don't need a new codec function for this.
What about something like .decode('mbcs', errors='windows')?

I still don't see the advantage of codecs.code_page_encode().

----------

_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue12281>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to