aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/DBCS.cxx5
1 files changed, 4 insertions, 1 deletions
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;
}