Eli Zaretskii writes: >> there is a possibility it prevents correct decoding in case the >> terminal receives a utf-8 character in single byte chunks (though >> I'm not sure if it's even valid for a program to emit single bytes >> like that). > > I agree. I thought of limiting partial to 4, to avoid this possibility, since utf-8 characters can be 4 bytes at most (not sure about other encodings though).