Skip to content

Commit fd445a7

Browse files
committed
Bug fix in UTF-8 fixup code - did not handle IAC properly
1 parent b9c5997 commit fd445a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2118,7 +2118,7 @@ CString strLine (lpszText, size);
21182118

21192119
// do not display UTF-8 characters until they have completely arrived
21202120
// check if high-order bit is set
2121-
if (m_bUTF_8 && (c & 0x80))
2121+
if (m_bUTF_8 && (c & 0x80) && c != IAC)
21222122
{
21232123
m_UTF8Sequence [0] = c;
21242124
m_UTF8Sequence [1] = 0; // null terminator

0 commit comments

Comments
 (0)