From 10bc2020aee2219a61cc0967eb96d7df273f2ac3 Mon Sep 17 00:00:00 2001 From: marc2k3 <34617027+marc2k3@users.noreply.github.com> Date: Mon, 18 Nov 2019 07:43:12 +0000 Subject: [PATCH] v2.3.3.1 [ci skip] --- CHANGELOG.md | 3 +++ foo_jscript_panel/docs/Interfaces.txt | 4 ++-- src/foo_jscript_panel.h | 2 +- src/script_interface/Utils.cpp | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 62c3232..a67cf22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v2.3.3.1 +- Add `utils.ReadUTF8`. It's preferable to use this when you know the file is `UTF8` encoded... such as ones written by `utils.WriteTextFile`. Continue to use `utils.ReadTextFile` if the files are `UCS2-LE`, `ANSI` or unknown. + ## v2.3.3 - Fix rare crash with `utils.ReadTextFile`. diff --git a/foo_jscript_panel/docs/Interfaces.txt b/foo_jscript_panel/docs/Interfaces.txt index 1175b7d..a09f7a5 100644 --- a/foo_jscript_panel/docs/Interfaces.txt +++ b/foo_jscript_panel/docs/Interfaces.txt @@ -1215,9 +1215,9 @@ interface IUtils { utils.ReadUTF8(filename); (string) /* - It's preferable to use this when you know the file is UTF8 encoded... such as + It's preferable to use this when you know the file is "UTF8" encoded... such as ones written by "utils.WriteTextFile". Continue to use "utils.ReadTextFile" - when you're unsure of the source. + if the files are "UCS2-LE", "ANSI" or unknown. */ utils.TimestampToDateString(ts); (string) diff --git a/src/foo_jscript_panel.h b/src/foo_jscript_panel.h index 43b455b..ed02987 100644 --- a/src/foo_jscript_panel.h +++ b/src/foo_jscript_panel.h @@ -4,7 +4,7 @@ #define JSP_DLL_NAME "foo_jscript_panel.dll" // Remember to bump utils.version too -#define JSP_VERSION_NUMBER "2.3.3" +#define JSP_VERSION_NUMBER "2.3.3.1" #define JSP_VERSION_TEST "" #ifdef _DEBUG diff --git a/src/script_interface/Utils.cpp b/src/script_interface/Utils.cpp index 7886519..ffa0a31 100644 --- a/src/script_interface/Utils.cpp +++ b/src/script_interface/Utils.cpp @@ -417,6 +417,6 @@ STDMETHODIMP Utils::get_Version(UINT* p) { if (!p) return E_POINTER; - *p = 2330; + *p = 2331; return S_OK; }