[New-bugs-announce] [issue30338] LC_ALL=en_US + io.open() => LookupError: (osx)
Anthony Sottile
report at bugs.python.org
Wed May 10 18:22:18 EDT 2017
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 <report at bugs.python.org>
<http://bugs.python.org/issue30338>
_______________________________________
More information about the New-bugs-announce
mailing list