diff options
| -rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
| -rw-r--r-- | src/DBCS.cxx | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 1148abaa1..45ffeefe9 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -608,6 +608,10 @@ <a href="https://sourceforge.net/p/scintilla/feature-requests/184/">Feature #184</a>. </li> <li> + Allow Euro '€' in code page 936 for 0x80. + <a href="https://sourceforge.net/p/scintilla/feature-requests/1575/">Feature #1575</a>. + </li> + <li> Fix SCI_SETSELECTIONNSTART and SCI_SETSELECTIONNEND to behave more sensibly. <a href="https://sourceforge.net/p/scintilla/bugs/2488/">Bug #2488</a>. </li> diff --git a/src/DBCS.cxx b/src/DBCS.cxx index f92b7a5a9..062c30a51 100644 --- a/src/DBCS.cxx +++ b/src/DBCS.cxx @@ -90,10 +90,13 @@ bool DBCSIsTrailByte(int codePage, char ch) noexcept { bool IsDBCSValidSingleByte(int codePage, int ch) noexcept { switch (codePage) { case cp932: + // Shift_jis return ch == 0x80 || (ch >= 0xA0 && ch <= 0xDF) || (ch >= 0xFD); - + case cp936: + // GBK + return ch == 0x80; default: return false; } |
