Bug 134763 - ps(1) cannot output multi-byte characters properly.
Summary: ps(1) cannot output multi-byte characters properly.
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: procps
Version: 4.0
Hardware: ia64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Karel Zak
QA Contact:
URL:
Whiteboard:
: 134780 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-10-06 06:21 UTC by L3support
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-11-18 08:53:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
procps-3.2.3 utf8 patch for your tests.. (2.79 KB, patch)
2004-10-07 12:32 UTC, Karel Zak
no flags Details | Diff
v2 of UTF8 procps patch (4.92 KB, patch)
2004-10-13 07:17 UTC, Karel Zak
no flags Details | Diff

Description L3support 2004-10-06 06:21:40 UTC
Description of problem:
ps(1) cannot output a process name or a path including mulitibyte
characters. 

Version-Release number of selected component (if applicable):
procps-3.2.3-3

How reproducible:
always

Steps to Reproduce:
1. Specify Japanese character 'ã¦ãã¨' as an application name.
   # cc test.c -o ã¦ãã¨
2. # ./ã¦ã㨠&
3. # ps -a 

-----
// test.c
main(){ 
    sleep(60);
}
-----

Actual results:
# ps
  PID TTY          TIME CMD
 3286 pts/3    00:00:00 bash
 3412 pts/3    00:00:00 ??
 3413 pts/3    00:00:00 ps

Expected results:
[root@plat-tiger4b tmp]# ps
  PID TTY          TIME CMD
 3286 pts/3    00:00:00 bash
 3412 pts/3    00:00:00 ã¦ãã¨
 3413 pts/3    00:00:00 ps

Additional info:

Comment 1 Jay Turner 2004-10-06 09:26:40 UTC
*** Bug 134780 has been marked as a duplicate of this bug. ***

Comment 2 Jay Turner 2004-10-06 10:25:48 UTC
There's a corresponding RHEL3 bug as well as #112518.

Comment 4 Karel Zak 2004-10-07 12:32:24 UTC
Created attachment 104887 [details]
procps-3.2.3 utf8 patch for your tests..

Comment 5 L3support 2004-10-08 09:07:40 UTC
Thank you so much. It works well. Will this patch be applyed soon?

Regards,

Comment 6 Karel Zak 2004-10-13 07:16:20 UTC
This patch is not right :-) I have new and better version and I just
test it together with upstream maintainer.

Comment 7 Karel Zak 2004-10-13 07:17:50 UTC
Created attachment 105113 [details]
v2 of UTF8 procps patch

Comment 9 L3support 2004-10-20 00:29:00 UTC
Thanks for the revised patch. 
ps(1) can output UTF8 multibyte characters. But some commands such as
w(1), pmap(1) and top(1) abnormally end with segmentation fault.

Comment 10 Karel Zak 2004-10-20 06:23:20 UTC
Sorry. It's already fixed in latest patch version. I forgot release at
bugzilla. The patch will available in next procps upstream and RH
release -- now I need one or two days for tests. Thanks for your interest.

Comment 11 Karel Zak 2004-11-05 07:52:35 UTC
The beta version with UTF8 support:

http://people.redhat.com/kzak/procps/beta/

Comment 12 Karel Zak 2004-11-18 08:53:35 UTC
The UTF-8 support for "ps" is done in new version (3.2.4) of procps,
but this version is not included in RHEL4 (we will see it probably in
next enterprice version). The stable patch is available now when RHEL4
is in the beta state and it's too late.

The first distribution with this feature will FC4.


Note You need to log in before you can comment on or make changes to this bug.