Page MenuHomeFreeBSD

w: use locale-based format specifiers
ClosedPublic

Authored by yuripv on Jun 7 2020, 10:06 AM.

Details

Summary

Same as in ps (used the same reproducers). Use %hs instead of %s for process names/arguments. Everything else doesn't look to be localized, so I'm not touching it.

Test Plan

Use w with process list containing non-UTF-8 text.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.