[issue134] smart search crashes with UnicodeEncodeError

Mauricio Teixeira (netmask) at Labix Tracker tracker at labix.org
Thu Mar 16 02:29:04 PST 2006


Mauricio Teixeira (netmask) <mteixeira at webset.net> added the comment:

Could you please try the patch bellow?

Index: commands/query.py
===================================================================
--- commands/query.py   (revisão 696)
+++ commands/query.py   (cópia de trabalho)
@@ -501,7 +501,7 @@
             print "[%s]" % ', '.join(channels),
         if self.opts.show_summary:
             info = pkg.loaders.keys()[0].getInfo(pkg)
-            print "-", info.getSummary(),
+            print "-", info.getSummary().encode(sys.getfilesystemencoding()),
         print

         self._firstprovides = True

----------
nosy: +netmask

_______________________________________
Labix issue tracker <tracker at labix.org>
<http://tracker.labix.org/issue134>
_______________________________________



More information about the Smart mailing list