]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ps: use %hs instead of %s format specifiers
authoryuripv <yuripv@FreeBSD.org>
Sun, 7 Jun 2020 08:21:19 +0000 (08:21 +0000)
committeryuripv <yuripv@FreeBSD.org>
Sun, 7 Jun 2020 08:21:19 +0000 (08:21 +0000)
commit4ea0099bc3c0d19e68e0385dfa6afa8896905398
tree2f18b07e8eb24421dd54c2f7d80e6ae10483b0b6
parent3e9c8066066621a2c66465d62075bf9e0c87645f
ps: use %hs instead of %s format specifiers

Use %hs (locale-based encoding) instead of %s (UTF-8) format for
strings that are expected to be in current locale encoding (date/time,
process names/argument list).

PR: 241491
Reviewed by: phil
Differential Revision: https://reviews.freebsd.org/D22160
bin/ps/keyword.c
bin/ps/print.c
bin/ps/ps.c