From e1231262e53428bcd3fdb50d2e123e99e926e213 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 12 Jul 2011 11:03:58 +1000 Subject: Fix Shift-JIS lead byte ranges to match Windows. --- src/Document.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Document.cxx b/src/Document.cxx index 8a825650a..8f135fb4d 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -662,7 +662,8 @@ bool SCI_METHOD Document::IsDBCSLeadByte(char ch) const { case 932: // Shift_jis return ((uch >= 0x81) && (uch <= 0x9F)) || - ((uch >= 0xE0) && (uch <= 0xEF)); + ((uch >= 0xE0) && (uch <= 0xFC)); + // Lead bytes F0 to FC may be a Microsoft addition. case 936: // GBK return (uch >= 0x81) && (uch <= 0xFE); -- cgit v1.2.3