Bug#495272: deb822 cannot handle unicode fields

Adeodato Simó dato at net.com.org.es
Fri Aug 15 23:45:43 UTC 2008


* John Wright [Fri, 15 Aug 2008 17:59:44 -0300]:

> tags 495272 + pending
> thanks

> Hi Jonny,

> On Fri, Aug 15, 2008 at 08:55:55PM +0100, Jonny Lamb wrote:
> > 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].

> > I attach a patch (you can easily apply with git-am(1)) to try and fix
> > this problem.

> Thanks for the report and the fix!  I have committed your patch and
> pushed the changes; they will appear in the next upload to Debian.

Maybe I'm mistaken but:

  * I can't reproduce the bug with the unpatched version, using my name
    in the Maintainer field of the .dsc file

  * the proposed fix is a no-op (and should hence be reverted), because
    the line "# vim: fileencoding=utf-8" already does what the proposed
    "# -*- coding: utf-8 -*-" does (see PEP 263)

  * moreover, the "coding: utf-8" line does not change the default
    encoding of python! Just the encoding on which non-ascii string
    literals should be interpreted within that file

So, could you provide a file with I could reproduce.

Thanks,

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
                                      Listening to: Javier Álvarez - Hui






More information about the pkg-python-debian-maint mailing list