[issue25359] io.open() fails to open ascii file if LANG env not set
Ned Deily
report at bugs.python.org
Mon Oct 12 12:59:23 EDT 2015
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 <report at bugs.python.org>
<http://bugs.python.org/issue25359>
_______________________________________
More information about the Python-bugs-list
mailing list