Package: python-debian Version: 0.1.14 Severity: wishlist Please implement __unicode__() for Changelog and ChangeBlock to be able to convert a changelog or a block into a unicode string.
>>> from debian_bundle.changelog import Changelog >>> c = Changelog(open('changelog.txt', 'r')) >>> unicode(c) Traceback (most recent call last): File "<stdin>", line 1, in <module> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 220: ordinal not in range(128) >>> unicode(c._blocks[1]) Traceback (most recent call last): File "<stdin>", line 1, in <module> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 62: ordinal not in range(128) >>> str(c._blocks[1]) 'haskell-src-exts (1.1.4-1) unstable; urgency=low\n\n\n [ Marco T\xc3\xbalio Gontijo e Silva ]\n\n * debian/control: Use one package for line in dependencies.\n\n * debian/rules: Make build depend only in build-arch to avoid building\n\n indep packages in all architectures.\n\n * debian/control: Use more sintetic name for Vcs-Darcs.\n\n\n\n [ Joachim Breitner ]\n\n * New upstream version \n\n * Put haddoc et. al. into Build-Depends\n\n * Bump standards version\n\n\n\n -- Joachim Breitner <nome...@debian.org> Tue, 08 Sep 2009 18:13:15 +0200\n\n\n\n' A work-around for now is: >>> unicode(str(c._blocks[1]).decode('utf-8')) >>> unicode(str(c).decode('utf-8')) The used changelog is http://packages.debian.org/changelogs/pool/main/h/haskell-src-exts/current/changelog.txt Thanks, Michael -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org