Ned Deily added the comment: I can reproduce the problem using the MacPorts python2.7 but not the Apple-supplied Python 2.7 or the python.org one. The difference seems to be that the MacPorts Python is built with the MacPorts-supplied GNU gettext and its libintl, whereas the others aren't (since Apple does not ship libintl). I don't have time at the moment to dig into why the libintl version of setlocale retunes '' instead of 'US-ASCII'. Perhaps locale.py or io could handle that case better?
---------- type: crash -> behavior _______________________________________ 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