tclib
tclib copied to clipboard
[tc_string] [tc_terminal] Implement proper char<->UTF-8 conversion.
In non-Windows, the libraries currently silently assume the input is UTF-8. The information is (mostly) available, and it should be used to convert the locale-specific char encoding to UTF-8.
See /tests/TEST-os-conv.c for a few conversion options.