From ff48fa7c5130a3fd8d38deb31801117215fe43fd Mon Sep 17 00:00:00 2001 From: Mirek Fidler Date: Thu, 14 Sep 2023 13:22:50 +0200 Subject: [PATCH] Core: Fixed XML encoding issue (thanks zsolt) --- uppsrc/Core/XML.cpp | 2 +- uppsrc/ide/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uppsrc/Core/XML.cpp b/uppsrc/Core/XML.cpp index 33d4f1d8e..013e56894 100644 --- a/uppsrc/Core/XML.cpp +++ b/uppsrc/Core/XML.cpp @@ -402,7 +402,7 @@ void XmlParser::Next() int w = tagtext.Find('\"', q); if(w < 0) return; - q = CharsetByName(tagtext.Mid(q, w)); + q = CharsetByName(tagtext.Mid(q, w - q)); if(q) scharset = q; return; diff --git a/uppsrc/ide/main.cpp b/uppsrc/ide/main.cpp index 00a330d29..20a1b21a5 100644 --- a/uppsrc/ide/main.cpp +++ b/uppsrc/ide/main.cpp @@ -402,7 +402,7 @@ void AppMain___() if(FileExists(crash_file)) { if(LibClangEnabled && PromptYesNo("TheIDE has crashed the last time it was run. As the possible " - "cause is libclang incompatibility, we are suggesting to disable Assist features for now.")) + "cause is libclang incompatibility, we Assist features are disabled for now.")) LibClangEnabled = false; DeleteFile(crash_file); }