g_utf8_get_char_validated function that can accept U+0000?
A question about !967 (merged) and our use of g_utf8_get_char_validated in a downstream project (irssi).
GLib 2.64 is slowly trickling into production and now we have a growing number of people that are freezing their Irssi IRC clients by pressing Ctrl+Space. The reason is that utf8_get_char_validated was changed to reject Ctrl+Space aka NUL with -2.
According to the docs, " a partial sequence [...] that could begin a valid character ". Now the logic in our app used to be this: as long as -2 is returned, continue reading and accumulating terminal input in a buffer with a length, trying to build up valid UTF-8 characters. What should we do?