Found one other missing incrementation of num_in_char. Diff against utils.c with the previous patch applied Best regards, Sebastian Gniazdowski On 6 December 2015 at 10:37, Sebastian Gniazdowski wrote: > Hello, > while working my hands off on implementing display width handling in > params.c rather than subst.c I encountered a bug in mb_metastrlenend. > It will reveal itself only on improper unicode strings. > > Best regards, > Sebastian Gniazdowski