]> granicus.if.org Git - procps-ng/commit
top: relocate the 'fatal_proc_unmounted' function call
authorJim Warner <james.warner@comcast.net>
Tue, 29 Dec 2020 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@dropbear.xyz>
Sat, 2 Jan 2021 04:42:10 +0000 (15:42 +1100)
commita0aed7b3dfd0fac35c67d228f42d8c1fae564d76
tree41aef16e9be94180dc531d3dd1731711f2cb5ec5
parent649e45482fa11d6a4d94230eea07277181cd9ae0
top: relocate the 'fatal_proc_unmounted' function call

With the restoration of corrupt utf8 multibyte editing
to the library, it's important to establish the proper
locale before calling that 'fatal_proc_unmounted' guy.

He calls the original 'look_up_our_self' who, in turn,
will invoke 'stat2proc' which then calls 'escape_str'.
Once there, it's too late to effect changes to locale.

[ the result would be lots and lots of '?' displayed ]

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