[issue24672] shutil.rmtree fails on non ascii filenames

Serhiy Storchaka report at bugs.python.org
Sat Jul 30 00:55:52 EDT 2016


Serhiy Storchaka added the comment:

See also issue16700.

On Windows there are two sets of API: Unicode and bytes. File names are stored in Unicode (UTF-16) in modern filesystems and encoded to bytes by system for bytes API. Unfortunately this encoding is lossfull. Windows try to find the closest equivalent if the character is not encodable with current codepage (for example drops diacritics) and silently replaces it with "?" if can't find anything appropriate. We can't do anything with this from Python side except using Unicode API.

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list