Author: Matti Picus <[email protected]>
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')
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to