git: ifconfig(8): Render non-ASCII SSID names with UTF-8 locales
Aaron LI
aly at crater.dragonflybsd.org
Fri Jun 26 07:55:28 PDT 2020
commit d5e6c24f77ac1154d7c486381fc10f51c2d9e087
Author: Aaron LI <aly at aaronly.me>
Date: Sun Apr 12 20:56:39 2020 +0800
ifconfig(8): Render non-ASCII SSID names with UTF-8 locales
Currently ifconfig(8) only prints the hex representation of ssid names
with non-ASCII characters. Many modern terminals are able to properly
render non-ASCII characters. This change checks if the terminal charmap
is UTF-8, and if so, will render the characters, rather than the hex
value.
This behavior is circumvented by running ifconfig(8) in a non-UTF8
locale; e.g. C or POSIX.
Obtained from FreeBSD:
https://github.com/freebsd/freebsd/commit/137a4801848fde80544a987fb168ff56face2ffd
https://reviews.freebsd.org/D15922
Summary of changes:
sbin/ifconfig/ifieee80211.c | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d5e6c24f77ac1154d7c486381fc10f51c2d9e087
--
DragonFly BSD source repository
More information about the Commits
mailing list