On 6/22/22 18:48, Tomoaki AOKI wrote:
Hi.
Not actually tested, but this can cause breakage on non-ascii cases.
Maybe also (or instead) iswspace() test would be needed.
Possibly additional mbrtowc() in the argument of iswspace().
Please see `man 3 multibyte` and `man 3 iswspace`.
(Possibly more to see.)
Characters in buf can be multibyte or wide char depending on locale,
as vt can show at least UTF-8 characters.
Sorry, not looked into enough how UTF-8 characters outside ascii are
handled internally on vt.
Thanks for your feedback.
Now using the TCHAR_CHARACTER() macro, which is already used for space
separation.
See:
https://reviews.freebsd.org/D35552
--HPS