| Message |
I tried forcing through a bad UTF-8 sequence, and only got an inline message, like this:
Previous line had a bad UTF-8 sequence at column 48, and was not evaluated for trigger matches
What did the modal dialog box say?
Anyway, why are you getting bad UTF-8 sequences? Do you have UTF-8 turned on for a MUD that doesn't support it? Or is the MUD server sending bad sequences? Surely that needs looking into?
I just checked the code, the message about bad UTF-8 sequences only appear in one spot, namely here:
// check for bad UTF8 in the line - otherwise all triggers will fail
if (m_bUTF_8)
{
iBad = _pcre_valid_utf8 ((const unsigned char *) (const char *) strCurrentLine,
strCurrentLine.GetLength ());
if (iBad >= 0)
{
m_iUTF8ErrorCount++;
// every 128 lines, warn them
if ((m_iUTF8ErrorCount & 0x7F) == 1)
ColourNote ("white", "red",
TFormat ("Previous line had a bad UTF-8 sequence at column %i, and was not evaluated for trigger matches",
iBad + 1));
}
}
You see it does a ColourNote, not a modal dialog box. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|