hanslub42/rlwrap

rlwrap assumes all multi-byte characters occupy one column

hanslub42 opened this issue · 0 comments

mbc_strnlen(str, ...) just counts the number of multi-byte characters in str, possibly biting folks that might want a smiley in their prompts.

Some combinaton of mbrtowc() and wcswidth() should be able to fix this, probably.