Don't crash if a character is not a valid char in isSpace()
Qt 6 includes Q_ASSERT(rc <= 0xffff)
in the QChar constructor.
This causes Qt 6 builds of Konsole to segfault when entering an emoji or when a script is printing an emoji.
Qt 6 includes Q_ASSERT(rc <= 0xffff)
in the QChar constructor.
This causes Qt 6 builds of Konsole to segfault when entering an emoji or when a script is printing an emoji.