New submission from Anthony Sottile: Originally seen here: https://github.com/Microsoft/vscode/issues/26227
``` $ LC_ALL=en_US python -c 'import io; io.open("/dev/null")' Traceback (most recent call last): File "<string>", line 1, in <module> LookupError: unknown encoding: ``` Admittedly, that `LC_ALL` looks malformed (should be en_US.UTF-8), but given this works on linux: ``` $ env -i LC_ALL=en_US python -c 'import io; io.open("/dev/null")' $ ``` It may be an OSX specific bug? I've only tagged py27 + py36 because I did not have a build toolchain available to try on master, though I imagine it is reproducible there as well. ---------- components: Library (Lib), macOS messages: 293457 nosy: Anthony Sottile, ned.deily, ronaldoussoren priority: normal severity: normal status: open title: LC_ALL=en_US + io.open() => LookupError: (osx) type: crash versions: Python 2.7, Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30338> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com