diff options
author | Neil <nyamatongwe@gmail.com> | 2019-04-17 07:25:22 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-04-17 07:25:22 +1000 |
commit | 5df838385934c3ae4682e6b60be82e06865d257d (patch) | |
tree | 05fc49e145c241a9ebb86b6aab21e6023adee80f /src | |
parent | 6ece2fdd844cb867a96b786c6af421cbb962a512 (diff) | |
download | scintilla-mirror-5df838385934c3ae4682e6b60be82e06865d257d.tar.gz |
Bug [#2093]. For DBCS make result of "\x82\xCC" be 0x82CC instead of 0x82CE.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index d07f01945..352a133ae 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1980,7 +1980,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)) { |