From 3426d5833996f4388de2545ffc81eb61f71346c3 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Tue, 3 Dec 2024 18:36:08 +0100 Subject: [PATCH] Fix applying MS-Dos style displayed incorrectly issue --- PowerEditor/src/ScintillaComponent/Buffer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PowerEditor/src/ScintillaComponent/Buffer.cpp b/PowerEditor/src/ScintillaComponent/Buffer.cpp index 165bb7311..930a9f4b2 100644 --- a/PowerEditor/src/ScintillaComponent/Buffer.cpp +++ b/PowerEditor/src/ScintillaComponent/Buffer.cpp @@ -132,6 +132,8 @@ void Buffer::setLangType(LangType lang, const wchar_t* userLangName) _lang = lang; if (_lang == L_USER) _userLangExt = userLangName; + else if (_lang == L_ASCII) + _encoding = NPP_CP_DOS_437; _needLexer = true; //change of lang means lexern needs updating doNotify(BufferChangeLanguage | BufferChangeLexing);