aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-04-17 07:25:22 +1000
committerNeil <nyamatongwe@gmail.com>2019-04-17 07:25:22 +1000
commit9b530e06b3a5e3124709c45e1b2cfd639c428fef (patch)
treeb1a91dbcc0b78c798f4665c2d5c7c8acb1b4e90f
parentf97452bd5a2fe53085fbb9ada4949b5d7e0ebe66 (diff)
downloadscintilla-mirror-9b530e06b3a5e3124709c45e1b2cfd639c428fef.tar.gz
Backport: Bug [#2093]. For DBCS make result of "\x82\xCC" be 0x82CC instead of 0x82CE.
Backport of changeset 7429:1dcd0ca93618.
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index d47ece75b..8f583636d 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1977,7 +1977,7 @@ void Editor::AddCharUTF(const char *s, unsigned int len, bool treatAsDBCS) {
if (treatAsDBCS || pdoc->dbcsCodePage != SC_CP_UTF8) {
if (len > 1) {
// DBCS code page or DBCS font character set.
- ch |= (ch << 8) | static_cast<unsigned char>(s[1]);
+ ch = (ch << 8) | static_cast<unsigned char>(s[1]);
}
} else {
if ((ch < 0xC0) || (1 == len)) {