Package: iotop
Version: 0.6-1
Severity: normal

Hi,

Despite #616481, #670331, and #708252 being closed, I'm still getting
Unicode errors with iotop.  Perhaps process names should be treated as
opaque binary strings and sent straight to the terminal that way, just
like top(1), ps(1), etc.

$ sh -c "sleep 1000; echo ☻" &
$ sudo env -i /usr/sbin/iotop -b -n 1 > /dev/null
Traceback (most recent call last):
  File "/usr/sbin/iotop", line 17, in <module>
    main()
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 620, in main
    main_loop()
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 610, in <lambda>
    main_loop = lambda: run_iotop(options)
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 506, in run_iotop
    return run_iotop_window(None, options)
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 501, in 
run_iotop_window
    ui.run()
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 155, in run
    self.process_list.duration)
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 447, in 
refresh_display
    print(l)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u263b' in position 
83: ordinal not in range(128)

Jim

-- System Information:
Debian Release: 6.0.6
  APT prefers stable
  APT policy: (200, 'stable'), (80, 'testing'), (50, 'unstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages iotop depends on:
ii  python  2.7.2-9

iotop recommends no packages.

iotop suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to