Bug#604093: Bug #604093: python-debian: iter_paragraphs: be more robust against RFC822 comments in unicoded files -- swallows the trailer

Yaroslav Halchenko yoh at debian.org
Mon Jul 28 15:18:57 UTC 2014


Hi Stuart,

Thank you for getting back to this issue:

On Tue, 29 Jul 2014, Stuart Prescott wrote:
> A while ago, you reported a bug against python-debian's handling of comments 
> in deb822.

> In that bug, the following input was used to illustrate the problem:

> > $> cat confuse.txt 
> > Goodone: value0

> >  ; xxx might be unicode: Ярик

> > Entry: value

> [...]

> > or may be comments shouldn't be detached from paragraphs according to
> > rfc822? (in any case the divergence between unicode/plain handling is
> > sub-optimal)

> The only place where comments are defined in deb822 files that I can find is in 
> policy §5.1 and they are only defined for debian/control files and comments are 
> started by a # at the start of the line.

if I get it right, I either saw (or found somewhere) a confirmation that
deb822 is based on (not just inspired by) rfc822, and that is why I was
expecting comments as defined in rfc822 be respected:

https://www.ietf.org/rfc/rfc0822.txt
2.8.  ; COMMENTS

          A semi-colon, set off some distance to  the  right  of  rule
     text,  starts  a comment that continues to the end of line.  This
     is a simple way of including useful notes in  parallel  with  the
     specifications.


but if deb822 is not derived from rfc822, I guess my report was a moot ;)

-- 
Yaroslav O. Halchenko, Ph.D.
http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org
Research Scientist,            Psychological and Brain Sciences Dept.
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        



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