aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Document.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index a58be8a0d..a5907f97f 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -591,12 +591,17 @@ bool SCI_METHOD Document::IsDBCSLeadByte(char ch) const {
// GBK
return (uch >= 0x81) && (uch <= 0xFE);
case 949:
- // Korean EUC-KR
- // There is also a code page 1361 for Korean Johab which appears to not be widely supported
+ // Korean Wansung KS C-5601-1987
return (uch >= 0x81) && (uch <= 0xFE);
case 950:
// Big5
return (uch >= 0x81) && (uch <= 0xFE);
+ case 1361:
+ // Korean Johab KS C-5601-1992
+ return
+ ((uch >= 0x84) && (uch <= 0xD3)) ||
+ ((uch >= 0xD8) && (uch <= 0xDE)) ||
+ ((uch >= 0xE0) && (uch <= 0xF9));
}
return false;
}