[issue134] smart search crashes with UnicodeEncodeError

Andreas Hanke andreas.hanke at gmx-topmail.de
Mon Nov 20 19:23:17 PST 2006


David Farning schrieb:
> On Tue, 2006-11-21 at 00:09 +0000, Helge Hielscher at Labix Tracker
> wrote:
>> Helge Hielscher <hhielscher at unternehmen.com> added the comment:
>>
>> Seems to be fixed. Can't reproduce it here on Mandriva Cooker.
>>
>> ----------
>> status: accepted -> resolved
>>
> I wonder if it was python's unicode handling that improved?
> 
> I tried making a couple of debs with unicode in various places and could
> not create the issue either.

Interesting - I can still easily reproduce it even with Python2.5.

% smart info
[lots of output]
 Bochs is a highly portable open source IA-32 (x86) PC emulator written in
 C++, that runs on most popular platforms. It includes emulation of the
Intel
 x86 CPU, common I/O devices, and a custom BIOS. Currently, bochs can be
 compiled to emulate a 386, 486 or Pentium CPU. Bochs is capable of running
 Traceback (most recent call last):
  File "/usr/bin/smart", line 194, in <module>
    main(sys.argv[1:])
  File "/usr/bin/smart", line 167, in main
    exitcode = iface.run(opts.command, opts.argv)
  File "/usr/lib/python2.5/site-packages/smart/interface.py", line 53,
in run
    result = _command.main(self._ctrl, opts)
  File "/usr/lib/python2.5/site-packages/smart/commands/info.py", line
132, in main
    print "", line
  File "/usr/lib/python2.5/codecs.py", line 303, in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 68:
ordinal not in range(128)

Andreas



More information about the Smart mailing list