]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
top(1): support multibyte characters in command names (ARGV array)
authordaichi <daichi@FreeBSD.org>
Fri, 20 Sep 2019 17:37:23 +0000 (17:37 +0000)
committerdaichi <daichi@FreeBSD.org>
Fri, 20 Sep 2019 17:37:23 +0000 (17:37 +0000)
commit57bb1dff57ee60eac5aed02043a3903ccce141bc
tree25b5020fb5bfddee8a5a49802b68b50ed41c2c38
parenteffe49bdb9788c6ead3c0225e565bebc925abaca
top(1): support multibyte characters in command names (ARGV array)
depending on locale.

 - add setlocale()
 - remove printable() function
 - add VIS_OCTAL and VIS_SAFE to the flag of strvisx() to display
   non-printable characters that do not use C-style backslash sequences
   in three digit octal sequence, or remove it

This change allows multibyte characters to be displayed according to
locale. If it is recognized as a non-display character according to the
locale, it is displayed in three digit octal sequence.

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

Submitted by: hrs
Differential Revision: https://reviews.freebsd.org/D16204
usr.bin/top/display.c
usr.bin/top/display.h
usr.bin/top/machine.c
usr.bin/top/top.1
usr.bin/top/top.c