[python-debian/master] Bug#495272: deb822 cannot handle unicode fields
Jonny Lamb
jonnylamb at jonnylamb.com
Fri Aug 15 19:55:55 UTC 2008
Package: python-debian
Version: 0.1.11
Severity: important
Tags: patch
Hi,
When executing the "dump" method when there is unicode in one of the
fields in the rfc822 file a UnicodeDecodeError is raised. An example of
this and a traceback can be seen in [0].
This can easily be reproduced by getting a dsc file and throwing some
awkward characters in the Maintainer field, then executing:
>>> from debian_bundle import deb822
>>> a = deb822.Dsc(file(filename))
>>> a.dump
I attach a patch (you can easily apply with git-am(1)) to try and fix
this problem.
Regards,
0. http://debexpo.workaround.org/trac/ticket/68
--
Jonny Lamb, UK jonnylamb at jonnylamb.com
http://jonnylamb.com GPG: 0x2E039402
More information about the pkg-python-debian-commits
mailing list