aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WindowAccessor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-04-06 08:43:00 +0000
committernyamatongwe <unknown>2000-04-06 08:43:00 +0000
commitf129e6862882879aed3c8338243dbb43c17721ed (patch)
tree1352720978356ddc213962ccf1dc248c3b061491 /src/WindowAccessor.cxx
parentdae4eea6225cd2f3ed9f2e4dfe46606cc9a0743f (diff)
downloadscintilla-mirror-f129e6862882879aed3c8338243dbb43c17721ed.tar.gz
Initial Unicode support code.
Diffstat (limited to 'src/WindowAccessor.cxx')
-rw-r--r--src/WindowAccessor.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/WindowAccessor.cxx b/src/WindowAccessor.cxx
index d04c0142d..f0ad45914 100644
--- a/src/WindowAccessor.cxx
+++ b/src/WindowAccessor.cxx
@@ -19,7 +19,12 @@ bool WindowAccessor::InternalIsLeadByte(char ch) {
// TODO: support DBCS under GTK+
return false;
#elif PLAT_WIN
- return IsDBCSLeadByteEx(codePage, ch);
+ if (SC_CP_UTF8 == codePage)
+ // For lexing, all characters >= 0x80 are treated the
+ // same so none is considered a lead byte.
+ return false;
+ else
+ return IsDBCSLeadByteEx(codePage, ch);
#elif PLAT_WX
return false;
#endif