Bug 902704 - unicode encoding issue for output redirection
Summary: unicode encoding issue for output redirection
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pkgwat
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ralph Bean
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-22 10:06 UTC by Kamil Páral
Modified: 2013-03-08 23:58 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-14 16:28:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Kamil Páral 2013-01-22 10:06:15 UTC
Description of problem:
$ pkgwat changelog gajim > out
Starting new HTTPS connection (1): apps.fedoraproject.org
Starting new HTTPS connection (1): apps.fedoraproject.org
'ascii' codec can't encode character u'\xe4' in position 10126: ordinal not in range(128)

When I print it to stdout, it works.

Version-Release number of selected component (if applicable):
pkgwat-0.4-2.fc18.noarch

Comment 1 Kamil Páral 2013-01-22 10:08:45 UTC
By the way, it is very weird that the application doesn't crash (it is not caught by abrt), just prints out the exception text. I suppose there is some exception handler around the whole program. I don't think that is a good approach. It's good to catch KeyboardInterrupt and similar, but it shouldn't be a catch-all handler.

Comment 2 Ralph Bean 2013-01-22 14:32:27 UTC
Fixed upstream in the following commit: https://github.com/fedora-infra/pkgwat.cli/commit/c1ddc09846e423e5b448fbe3441ef7ccb967fbf3

That global exception catching is put in place by python-cliff and, I agree, it makes it hard to debug.  In the current version of python-cliff (1.3) you can pass '--debug' to pkgwat and it will print full stack traces.

Comment 3 Fedora Update System 2013-01-22 17:52:46 UTC
pkgwat-0.5-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/pkgwat-0.5-1.fc18

Comment 4 Fedora Update System 2013-02-14 16:25:59 UTC
pkgwat-0.5-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/pkgwat-0.5-2.fc18

Comment 5 Fedora Update System 2013-03-08 23:58:36 UTC
pkgwat-0.5-2.fc18 has been pushed to the Fedora 18 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.