top(1): support multibyte characters in ARGV array depending on LC_CTYPE, not limited to UTF-8
- add setlocale()
- remove printable() function
- add VIS_OCTAL to the flag of strvisx () to display non-printable characters that do not use C-style backslash sequences in three digit octal sequence
This change enables multibyte character strings to be displayed according to the locale. It is recognized as a non-display character depending on the locale, and in that case, it is displayed with three digit octal sequence.
submitted by: hrs
Reference:
https://www.mail-archive.com/svn-src-all@freebsd.org/msg165751.html
https://www.mail-archive.com/svn-src-all@freebsd.org/msg165766.html
https://www.mail-archive.com/svn-src-all@freebsd.org/msg165833.html
https://www.mail-archive.com/svn-src-all@freebsd.org/msg165846.html
https://www.mail-archive.com/svn-src-all@freebsd.org/msg165891.html