Bug 849559

Summary: iotop fails to start with wrong locale
Product: Red Hat Enterprise Linux 6 Reporter: Gianluca Varisco <gianluca.varisco>
Component: iotopAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.1CC: azelinka, gianluca.varisco, ovasik, rhack, tlavigne, zeph
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: iotop-0.3.2-7.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-21 23:49:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gianluca Varisco 2012-08-20 08:08:02 UTC
Description of problem:

iotop fails to start with wrong locale

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

iotop-0.3.2-3.el6.noarch

How reproducible:

[root@alice01 ~]# iotop
Traceback (most recent call last):
  File "/usr/bin/iotop", line 16, in <module>
    main()
  File "/usr/lib/python2.6/site-packages/iotop/ui.py", line 491, in main
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib64/python2.6/locale.py", line 513, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

  
Actual results:

locale.Error: unsupported locale setting

Expected results:

I would expect a warning and that the program continues as usual as the
output of iotop is no wordy text.

Additional info:

Patch from upstream: http://repo.or.cz/w/iotop.git/commitdiff/12fe7daf5ffa5f569b15284e411fb518d704a765

Comment 1 Michal Hlavinka 2012-08-20 08:19:14 UTC
reproducible
complete reproducer:
export LC_ALL=te_ST.utf-8
iotop

Comment 2 RHEL Program Management 2012-09-07 05:10:04 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 3 Gianluca Varisco 2013-05-08 21:05:56 UTC
No fix, then? (:

Shall we run:

LC_ALL=C iotop 

to 'fix' it?

Comment 9 errata-xmlrpc 2013-11-21 23:49:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1719.html