]> granicus.if.org Git - procps-ng/commit
top: some minor tweaks to the utf-8 multi-byte support
authorJim Warner <james.warner@comcast.net>
Sat, 30 Sep 2017 06:11:11 +0000 (01:11 -0500)
committerCraig Small <csmall@enc.com.au>
Sun, 1 Oct 2017 11:30:16 +0000 (22:30 +1100)
commitd002bdc45506123a2f3382c5dcc70571125a3ada
tree853edb2fbf7b88866f61a3d93a5afd9aaa4fabf4
parent0902221b950d8ee768b77b8e31f58b484c10581c
top: some minor tweaks to the utf-8 multi-byte support

Translatable column headers are supposed to be limited
to no more than 7 characters, even though some columns
are wider than that or even variable width. That value
of 7 is dictated by the Fields Management screen which
will otherwise truncate a column header longer than 7.

Our new utf-8 support did not adequately deal with the
potential need for truncation of column headers should
that limit of 7 be exceeded. This patch corrects that.

[ a few comments were also tweaked just a little bit ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c