Bug 1151849 - Output is not clear, unicode warning for some languages.
Summary: Output is not clear, unicode warning for some languages.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-langpacks
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Parag Nemade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-12 15:05 UTC by A S Alam
Modified: 2015-01-02 05:05 UTC (History)
3 users (show)

Fixed In Version: dnf-langpacks-0.6.0-1.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-02 05:04:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description A S Alam 2014-10-12 15:05:32 UTC
Description of problem:
While executing dnf langavailable <LANGNAME> it is showing warning

Version-Release number of selected component (if applicable):
dnf-langpacks-0.4.0-1.fc21.noarch

How reproducible:
Everytime

Steps to Reproduce:
1.dnf langavailable punjabi 
2.sudo dnf langavailable tamil
3.dnf langavailable hindi

Actual results:
Warning as below:

[aman@spacehawk ~]$ sudo dnf langavailable punjabi
/usr/lib/python2.7/site-packages/dnf-plugins/langpacks.py:381: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if lang.lower() in list(map(str.lower, lang_list)):

punjabi is available
Dependencies resolved.
Nothing to do.
[aman@spacehawk ~]$ sudo dnf langavailable tamil
/usr/lib/python2.7/site-packages/dnf-plugins/langpacks.py:381: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if lang.lower() in list(map(str.lower, lang_list)):

tamil is available
Dependencies resolved.
Nothing to do.
[aman@spacehawk ~]$ sudo dnf langavailable hindi
hindi is available
Dependencies resolved.
Nothing to do.


Expected results:
Should not be warning for Unicode like in case of Hindi

Additional info:
1. <LANGCODE> is working as expected, but only issue if there is LANG-NAME is used.

2. Warning is there for Few languages like Tamil, Telugu, but working fine for Gujarati, Malayalam, Assamese, Bengali etc.

Comment 1 A S Alam 2014-10-12 15:26:26 UTC
confirmed with latest package
dnf-langpacks-0.5.0-1.fc21.noarch

Comment 2 Fedora Update System 2014-12-23 17:35:32 UTC
dnf-langpacks-0.6.0-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/dnf-langpacks-0.6.0-1.fc21

Comment 3 Fedora Update System 2014-12-23 17:35:50 UTC
dnf-langpacks-0.6.0-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/dnf-langpacks-0.6.0-1.fc20

Comment 4 lnie 2014-12-24 07:04:17 UTC
dnf-langpacks-0.6.0-1.fc21

Comment 5 lnie 2014-12-24 07:05:00 UTC
dnf-langpacks-0.6.0-1.fc21 works

Comment 6 Fedora Update System 2014-12-25 05:32:42 UTC
Package dnf-langpacks-0.6.0-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-langpacks-0.6.0-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-17578/dnf-langpacks-0.6.0-1.fc20
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2015-01-02 05:04:40 UTC
dnf-langpacks-0.6.0-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2015-01-02 05:05:10 UTC
dnf-langpacks-0.6.0-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


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