Commit: 8fb1ea857ffef370acb020f6573c165100923e1b
Author: Campbell Barton
Date:   Sat Mar 7 11:53:14 2020 +1100
Branches: master
https://developer.blender.org/rB8fb1ea857ffef370acb020f6573c165100923e1b

Include file system encoding in 'System Info' operator

Help troubleshooting file system encoding issues.

===================================================================

M       release/scripts/modules/sys_info.py

===================================================================

diff --git a/release/scripts/modules/sys_info.py 
b/release/scripts/modules/sys_info.py
index 656e2b3bd54..fc3ffe4dd88 100644
--- a/release/scripts/modules/sys_info.py
+++ b/release/scripts/modules/sys_info.py
@@ -70,9 +70,13 @@ def write_sysinfo(filepath):
             output.write("build linkflags: %s\n" % 
prepr(bpy.app.build_linkflags))
             output.write("build system: %s\n" % prepr(bpy.app.build_system))
 
-            # python info
+            # Python info.
             output.write(title("Python"))
-            output.write("version: %s\n" % (sys.version))
+            output.write("version: %s\n" % (sys.version.replace("\n", " ")))
+            output.write("file system encoding: %s:%s\n" % (
+                sys.getfilesystemencoding(),
+                sys.getfilesystemencodeerrors(),
+            ))
             output.write("paths:\n")
             for p in sys.path:
                 output.write("\t%r\n" % p)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to