[issue134] smart search crashes with UnicodeEncodeError
Helge Hielscher at Labix Tracker
tracker at labix.org
Sun Mar 12 12:28:52 PST 2006
New submission from Helge Hielscher <hhielscher at unternehmen.com>:
http://qa.mandriva.com/show_bug.cgi?id=21594
Steps to reproduce:
a) "smart search AR PL ZenKai Uni|grep font"
Result: crash at package msttcorefonts (see traceback below)
(msttcorefonts-1.2-3 is installed)
b) "smart search opera"
Result: crash at package opera-i18n-nb (see traceback below)
(opera-i18n-nb is not installed)
Expected Result: smart catches the error and continues searching
Note: it crashes with locale set to C too
Traceback (most recent call last):
File "/usr/bin/smart", line 194, in ?
main(sys.argv[1:])
File "/usr/bin/smart", line 167, in main
exitcode = iface.run(opts.command, opts.argv)
File "/usr/lib/python2.4/site-packages/smart/interface.py", line 53, in run
result = _command.main(self._ctrl, opts)
File "/usr/lib/python2.4/site-packages/smart/commands/query.py", line 312, in
main
output.showPackage(pkg)
File "/usr/lib/python2.4/site-packages/smart/commands/query.py", line 504, in
showPackage
print "-", info.getSummary(),
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position
15:
ordinal not in range(128)
----------
nosy: +hhielscher
status: unread -> chatting
_______________________________________
Labix issue tracker <tracker at labix.org>
<http://tracker.labix.org/issue134>
_______________________________________
More information about the Smart
mailing list