+ size_t bytes;
+ wchar_t wc;
+ int width;
+
+ bytes = mbrtowc(&wc, end, len - (end - text), &ps);
+
+ assert(bytes != (size_t)-1);
+
+ /* we'll get a zero size for the nul terminator */
+ if (!bytes) {
+ line_cb(arg, start, end - start);
+ break;
+ }