[pypy-commit] pypy py3.6: change sys.getfilesystemcodeerors() to 'strict' on win32

mattip pypy.commits at gmail.com
Tue Sep 17 07:14:44 EDT 2019


Author: Matti Picus <matti.picus at gmail.com>
Branch: py3.6
Changeset: r97511:6e101bbc9993
Date: 2019-09-17 14:13 +0300
http://bitbucket.org/pypy/pypy/changeset/6e101bbc9993/

Log:	change sys.getfilesystemcodeerors() to 'strict' on win32

diff --git a/pypy/module/sys/interp_encoding.py b/pypy/module/sys/interp_encoding.py
--- a/pypy/module/sys/interp_encoding.py
+++ b/pypy/module/sys/interp_encoding.py
@@ -51,4 +51,6 @@
 
 
 def getfilesystemencodeerrors(space):
+    if sys.platform == "win32":
+        return space.newtext('strict')
     return space.newtext('surrogateescape')


More information about the pypy-commit mailing list