diff options
| author | Zufu Liu <unknown> | 2026-01-19 15:23:12 +1100 |
|---|---|---|
| committer | Zufu Liu <unknown> | 2026-01-19 15:23:12 +1100 |
| commit | ed97cb6060c786a4ddc0567250911f7093244d55 (patch) | |
| tree | 977af805bdf1f3fe0c043b6b8d190de6619138e6 | |
| parent | 58d4a329fe7cad43a664028f39fb0b1260ccf5b8 (diff) | |
| download | scintilla-mirror-ed97cb6060c786a4ddc0567250911f7093244d55.tar.gz | |
Allow Euro in code page 936 for byte 0x80.
| -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; } |
