|
|
|
@ -3372,7 +3372,7 @@ void Editor::AddCharUTF(char *s, unsigned int len, bool treatAsDBCS) {
|
|
|
|
|
// characters representing themselves.
|
|
|
|
|
} else {
|
|
|
|
|
// Unroll 1 to 3 byte UTF-8 sequences. See reference data at:
|
|
|
|
|
// http://www.cl.cam.ac.uk/~mgk25/tqunicode.html
|
|
|
|
|
// http://www.cl.cam.ac.uk/~mgk25/unicode.html
|
|
|
|
|
// http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt
|
|
|
|
|
if (byte < 0xE0) {
|
|
|
|
|
int byte2 = static_cast<unsigned char>(s[1]);
|
|
|
|
|