From 5b235c2850deec603f9295ed711aba2c249bf163 Mon Sep 17 00:00:00 2001 From: Chris Cunningham Date: Fri, 22 Sep 2023 14:30:28 -0300 Subject: [PATCH] fixes for utf-8 support and changed version number to 3.2.7 --- .idea/kotlinc.xml | 3 +++ .idea/misc.xml | 13 ++++++------- CHANGELOG.md | 5 ++++- gradle.properties | 2 +- src/main/kotlin/resources/PythonStrings.kt | 2 +- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml index 0dd4b35..13639f5 100644 --- a/.idea/kotlinc.xml +++ b/.idea/kotlinc.xml @@ -3,4 +3,7 @@ + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 349aa6d..68d949f 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,8 +1,7 @@ - - - - - - - + + + + + + \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 62695e0..4b48466 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,10 @@ # MayaCharm ## [Unreleased] -## [3.2.6] + +## [3.2.7] - 2023-09-22 +### Fixes +- now properly recognized UTf-8 code points in remotely executed scripts ## [3.2.6] - 2022-02-31 ### Added diff --git a/gradle.properties b/gradle.properties index 51bf2cd..fc18a7a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ pluginGroup = ca.rightsomegoodgames.mayacharm pluginName_ = MayaCharm -pluginVersion = 3.2.6 +pluginVersion = 3.2.7 pluginSinceVersion = 203.0 pluginVerifierIdeVersions = PY-2021.3 diff --git a/src/main/kotlin/resources/PythonStrings.kt b/src/main/kotlin/resources/PythonStrings.kt index 043c2d7..6c06be4 100644 --- a/src/main/kotlin/resources/PythonStrings.kt +++ b/src/main/kotlin/resources/PythonStrings.kt @@ -8,7 +8,7 @@ enum class PythonStrings(val message: String) { CLOSE_LOG("import maya.cmds as cmds;cmds.cmdFileOutput(closeAll=True)"), // no clue why the maya.cmds part is needed, but it works and prevents things from getting executing twice - EXECFILE("python(\"exec(compile(open(\\\"{0}\\\").read(), \\\"{0}\\\", \\\"exec\\\"))\")"), + EXECFILE("python(\"exec(compile(open(\\\"{0}\\\", encoding=\\\"utf-8\\\").read(), \\\"{0}\\\", \\\"exec\\\"))\")"), PYSTDERR("# Error: "), PYSTDWRN("# Warning: "), SETTRACE("import pydevd; pydevd.settrace(host=\"{0}\", port={1,number,#}, suspend={2}, stdoutToServer={3}, stderrToServer={3})"),