[Bf-extensions-cvs] [86c4ca71] blender-v2.83-release: Fix T76736: incorrect filename in SVG, fails to load elsewhere

Campbell Barton noreply at git.blender.org
Tue Jun 2 11:29:11 CEST 2020


Commit: 86c4ca71ef180fd67fe64451f8533d5ca3f6417e
Author: Campbell Barton
Date:   Tue Jun 2 19:28:22 2020 +1000
Branches: blender-v2.83-release
https://developer.blender.org/rBA86c4ca71ef180fd67fe64451f8533d5ca3f6417e

Fix T76736: incorrect filename in SVG, fails to load elsewhere

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

M	io_mesh_uv_layout/export_uv_eps.py
M	io_mesh_uv_layout/export_uv_svg.py

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

diff --git a/io_mesh_uv_layout/export_uv_eps.py b/io_mesh_uv_layout/export_uv_eps.py
index 45f64bb7..6d837a15 100644
--- a/io_mesh_uv_layout/export_uv_eps.py
+++ b/io_mesh_uv_layout/export_uv_eps.py
@@ -22,7 +22,7 @@ import bpy
 
 
 def export(filepath, face_data, colors, width, height, opacity):
-    with open(filepath, "w") as file:
+    with open(filepath, 'w', encoding='utf-8') as file:
         for text in get_file_parts(face_data, colors, width, height, opacity):
             file.write(text)
 
diff --git a/io_mesh_uv_layout/export_uv_svg.py b/io_mesh_uv_layout/export_uv_svg.py
index 8aba2142..3ce2e1f0 100644
--- a/io_mesh_uv_layout/export_uv_svg.py
+++ b/io_mesh_uv_layout/export_uv_svg.py
@@ -23,7 +23,7 @@ from os.path import basename
 from xml.sax.saxutils import escape
 
 def export(filepath, face_data, colors, width, height, opacity):
-    with open(filepath, "w") as file:
+    with open(filepath, 'w', encoding='utf-8') as file:
         for text in get_file_parts(face_data, colors, width, height, opacity):
             file.write(text)



More information about the Bf-extensions-cvs mailing list