Chris Jerdonek added the comment: > How do you set the locale encoding to UTF-16? Do you mean UTF-16, UTF-16-LE > or UTF-16-BE?
I confirmed that the issue occurs for all of these. For testing purposes, you can do-- locale.getpreferredencoding = lambda do_setlocale: 'utf-16' ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15595> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com