Skip to content

Commit 99a11ac

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

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) && c != IAC)
2121+
if (!(flags & NOTE_OR_COMMAND) && m_bUTF_8 && (c & 0x80) && (c != IAC || m_phase == HAVE_IAC))
21222122
{
21232123
m_UTF8Sequence [0] = c;
21242124
m_UTF8Sequence [1] = 0; // null terminator

0 commit comments

Comments
 (0)