Eryk Sun added the comment: This is implemented in Steve's latest patch in issue 27781. For example:
>>> sys.platform 'win32' >>> os.mkdir('test') >>> f = open('test/\U00010000.txt', 'w') >>> next(os.scandir(b'test')).name b'\xf0\x90\x80\x80.txt' >>> next(os.scandir(b'test')).path b'test\\\xf0\x90\x80\x80.txt' ---------- nosy: +eryksun resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Change sys.getfilesystemencoding() on Windows to UTF-8 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27998> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com