aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/DocumentAccessor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-04-06 08:43:00 +0000
committernyamatongwe <devnull@localhost>2000-04-06 08:43:00 +0000
commit21b66126441a573050340f344972f35de7f1a52d (patch)
tree1352720978356ddc213962ccf1dc248c3b061491 /src/DocumentAccessor.cxx
parent884b65511efa0fa9c2172d2e70bc73f1fcd30e47 (diff)
downloadscintilla-mirror-21b66126441a573050340f344972f35de7f1a52d.tar.gz
Initial Unicode support code.
Diffstat (limited to 'src/DocumentAccessor.cxx')
-rw-r--r--src/DocumentAccessor.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/DocumentAccessor.cxx b/src/DocumentAccessor.cxx
index dd156fa24..420a359d6 100644
--- a/src/DocumentAccessor.cxx
+++ b/src/DocumentAccessor.cxx
@@ -22,7 +22,12 @@ bool DocumentAccessor::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