[pypy-issue] Issue #2279: 3.3: wrong encoding on sys.stdout when output is redirected to a file (pypy/pypy)

Ronan Lamy issues-reply at bitbucket.org
Thu Apr 21 16:35:35 EDT 2016


New issue 2279: 3.3: wrong encoding on sys.stdout when output is redirected to a file
https://bitbucket.org/pypy/pypy/issues/2279/33-wrong-encoding-on-sysstdout-when-output

Ronan Lamy:

```
$ pypy3 -c 'import sys; print(sys.stdout.encoding)' > xx
$ cat xx
ascii
$ pypy3 -c 'import sys; print(sys.stdout.encoding)'
UTF-8
```
On CPython, the result is `UTF-8` in both cases.

Responsible: rlamy


More information about the pypy-issue mailing list