Bug 600501 - repodiff seems to not handle nonascii characters in a package summary
Summary: repodiff seems to not handle nonascii characters in a package summary
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-04 20:40 UTC by Bruno Wolff III
Modified: 2014-01-21 23:15 UTC (History)
4 users (show)

Fixed In Version: yum-utils-1.1.27-2.fc13
Clone Of:
Environment:
Last Closed: 2010-06-04 20:51:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bruno Wolff III 2010-06-04 20:40:49 UTC
Description of problem:
I was running repodiff to compare f12 against f13 and got the following traceback:
New package iwl5150-firmware
Traceback (most recent call last):
  File "/usr/bin/repodiff", line 272, in <module>
    main(sys.argv[1:])
  File "/usr/bin/repodiff", line 199, in main
    print '        %s' % pkg.summary
  File "/usr/lib/python2.6/codecs.py", line 351, in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 26: ordinal not in range(128)

Version-Release number of selected component (if applicable):
yum-utils-1.1.26-7.fc13.noarch

How reproducible:
Seem 100%

Steps to Reproduce:
repodiff "--old=http://mirrors.kernel.org/fedora/releases/12/Everything/source/SRPMS/" "--new=http://mirrors.kernel.org/fedora/releases/13/Everything/source/SRPMS/"


Additional info:

Name       : iwl5150-firmware
Arch       : noarch
Version    : 8.24.2.2
Release    : 1.fc13
Size       : 121 k
Repo       : fedora
Summary    : Firmware for Intel® Wireless 5150 A/G/N network adaptors
URL        : http://intellinuxwireless.org/
License    : Redistributable, no modification permitted
Description: This package contains the firmware required by the iwlagn driver
           : for Linux to support the iwl5150 hardware.  Usage of the firmware
           : is subject to the terms and conditions contained inside the
           : provided LICENSE file. Please read it carefully.

Comment 1 seth vidal 2010-06-04 20:51:02 UTC
just needed a 'to_unicode()' around the summary output.

fixed in upstream.


thanks

Comment 2 Fedora Update System 2010-06-06 13:44:04 UTC
yum-utils-1.1.27-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/yum-utils-1.1.27-1.fc13

Comment 3 Fedora Update System 2010-06-14 17:19:35 UTC
yum-utils-1.1.27-2.fc13 has been pushed to the Fedora 13 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.