From 21b66126441a573050340f344972f35de7f1a52d Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 6 Apr 2000 08:43:00 +0000 Subject: Initial Unicode support code. --- src/WindowAccessor.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/WindowAccessor.cxx') 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 -- cgit v1.2.3