Bug 712359 - Error messages displayed incorrectly in locales where the translation is missing
Summary: Error messages displayed incorrectly in locales where the translation is missing
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: yum
Version: 5.7
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-10 12:34 UTC by Ondrej Hudlicky
Modified: 2014-01-21 06:23 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-25 21:25:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ondrej Hudlicky 2011-06-10 12:34:38 UTC
Description of problem:
Error messages displayed incorrectly in locales where the translation is missing = all except following list: $ rpm -ql yum | grep locale
Tested cs_CZ.UTF-8 ja_JP.UTF-8 (bug) de_DE.UTF-8 (localized, displays correctly)

Version-Release number of selected component (if applicable):
yum-3.2.22-35.el5

How reproducible:
always

Steps to Reproduce:
1. setup e.g. incorrect yum repo
2. $ export LANG=cs_CZ.UTF-8
3. invoke error message: $ yum search foo
  
Actual results:
$ LANG=cs_CZ.UTF-8 yum search foo
repomd.xml: [Errno 4] IOError: <urlopen error (-2, 'Nezn\xc3\xa1m\xc3\xa9 jm\xc3\xa9no nebo slu\xc5\xbeba')>
Trying other mirror.

$ LANG=ja_JP.UTF-8 yum search foo
repomd.xml: [Errno 4] IOError: <urlopen error (-2, '\xe5\x90\x8d\xe5\x89\x8d\xe3\x81\xbe\xe3\x81\x9f\xe3\x81\xaf\xe3\x82\xb5\xe3\x83\xbc\xe3\x83\x93\xe3\x82\xb9\xe3\x81\x8c\xe4\xb8\x8d\xe6\x98\x8e\xe3\x81\xa7\xe3\x81\x99')>

Expected results:
Error message for these locales displayed correctly in English:
repomd.xml: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>

Additional info:

Comment 1 James Antill 2011-08-25 21:11:31 UTC
 This sucks, but it's probably a bad idea to try and fix it at this point in RHEL-5 ... esp. as we ignore the LANG anyway in RHEL/yum. I guess we could override the LANG environment to always be en_US.utf-8.

 The problem with fixing it is that it introduced more bugs upstream, due to the bad way python handles unicode, and backporting all the fixes will be hard and prone to error (mainly of missing some).

 There is an unsupported "RHEL-6 and rawhide rebuild" repo. for RHEL-5 (and Fedora's) on repos.fedorapeople.org ... so a customer can try that. Or move to RHEL-6 :).

Comment 2 RHEL Program Management 2011-08-25 21:25:24 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.


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