mbswidth_truncate
width = mbswidth_truncate(s, ip->maxwidth);
int mbswidth_truncate(char *, int); /* utf8.c */