L added the comment: The difference, and I believe the crux of the issue is that locale.getprefferedencoding() is still returning and encoding for you, mine returns and emtpy str.
Do you have any other envs set that getprefferedencoding my be using: 'LANGUAGE', 'LC_ALL', 'LC_CTYPE', and 'LANG' Perhaps if you wipe all of these? ---------- components: -Macintosh type: behavior -> crash _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25359> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com