[Bug 230068] ps: processes with non-ASCII characters are hidden from list in "ps auxww"

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jul 27 17:07:20 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230068

--- Comment #3 from Conrad Meyer <cem at freebsd.org> ---
Hi Robert,

I don't think it's actually fixed in CURRENT.  I just happen to be using UTF-8,
so my on-disk names are UTF-8 as well.

I think the problem is something like this:

1. ps(1) now uses libxo for formatting its output.

2. libxo is pretty dumb and seems to expect all input in UTF-8.  (It can maybe
format non-UTF8 output if LANG/LC_FOO is set, but still expects programs to
give it UTF8 input, if I'm skimming it correctly.)

3. ps(1) is also fairly encoding-naive and just passes through the bytes it
gets from disk to libxo.

In my case, that works because the on-disk bytes are UTF-8.

I can reproduce the same issue you describe when the file is named
"BöserProzess" in ISO8859-15 (with appropriate LANG set), rather than in UTF-8.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list