[pypy-issue] Issue #2377: #2377 (pypy/pypy)
Daniil Yarancev
issues-reply at bitbucket.org
Tue Aug 23 16:07:28 EDT 2016
New issue 2377: #2377
https://bitbucket.org/pypy/pypy/issues/2377/2377
Daniil Yarancev:
Using last version of PyPy on Windows (5.3.1), issuing a "pypy -m ensurepip" command gives strange error:
```
#!python
File "C:\pypy2-v5.3.1-win32\lib-python\2.7\mimetypes.py", line 267, in read_windows_registry
mimetype = mimetype.encode(default_encoding)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
```
I use Russian version of Windows 10 (10.0.10586 build)
But I found a hack for resolving this error: changed
```
#!python
mimetype = mimetype.encode(default_encoding)
to
mimetype = mimetype
```
More information about the pypy-issue
mailing list