Red Hat Bugzilla – Bug 239744
repoquery: dies on non-unicode filenames
Last modified: 2014-03-16 23:06:39 EDT
Description of problem:
$ repoquery -qal > /tmp/filelist
Traceback (most recent call last):
File "/usr/bin/repoquery", line 703, in <module>
File "/usr/bin/repoquery", line 700, in main
File "/usr/bin/repoquery", line 414, in runQuery
UnicodeEncodeError: 'ascii' codec can't encode character u'\xea' in position
141: ordinal not in range(128)
Apparently something in extras makes it choke.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Yup, easily reproduced, various aspell-subpackages (eg aspell-pt) and a few
others trigger it.
Created attachment 155784 [details]
Force locale preferred encoding on a non-tty stdout instead of ascii
Man I hate the character encodings business...
After a bit of googling found the "magic" in the attached patch which would
seem to both
a) fix it for me
b) for encoding-clueless me, be a relatively sane thing to do
Of course this still leaves plenty of room for encoding-related tracebacks if
your preferred locale encoding doesn't happen to be utf-8. Sigh.
(In reply to comment #2)
> Man I hate the character encodings business...
Me too, :-)
yum-utils-1.1.5-1.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report.
yum-utils-1.1.5-1.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report.
It's baaaack...as Bug 315491.