Norihiro Tanaka wrote: > why this check is applied in only multi-byte locale? Ouch, good point. I missed the possibility of a unibyte encoding where not all bytes are valid unibyte characters. I installed the attached additional patch to fix this, and to test for the bug I recently introduced here.