Bug#993605: lxml.etree.tostring() trailing junk

2021-10-03 Thread Maxime Werlen
I confirm, all tests are OK with new version.

Thanks,

Maxime


Le ven. 1 oct. 2021 à 13:48, Jakub Wilk  a écrit :

> * Jakub Wilk , 2021-09-03, 17:35:
> >After upgrading libxml2 to 2.9.12+dfsg-3, the tostring() function
> >started returning strings with some trailing junk:
> >
> >  >>> import lxml.etree
> >  >>> html = lxml.etree.fromstring('P')
> >  >>> lxml.etree.tostring(html[0])
> >  b'P'
>
> This is no longer reproducible with libxml2 2.9.12+dfsg-5, presumably
> because this commit was cherry-picked:
> https://gitlab.gnome.org/GNOME/libxml2/-/commit/85b1792e37b131e7
> ("Work around lxml API abuse")
>
> --
> Jakub Wilk
>
> --
> To unsubscribe, send mail to 993605-unsubscr...@bugs.debian.org.
>


Bug#993605: lxml.etree.tostring() trailing junk

2021-10-01 Thread Jakub Wilk

* Jakub Wilk , 2021-09-03, 17:35:
After upgrading libxml2 to 2.9.12+dfsg-3, the tostring() function 
started returning strings with some trailing junk:


 >>> import lxml.etree
 >>> html = lxml.etree.fromstring('P')
 >>> lxml.etree.tostring(html[0])
 b'P'


This is no longer reproducible with libxml2 2.9.12+dfsg-5, presumably 
because this commit was cherry-picked:

https://gitlab.gnome.org/GNOME/libxml2/-/commit/85b1792e37b131e7
("Work around lxml API abuse")

--
Jakub Wilk



Bug#993605: lxml.etree.tostring() trailing junk

2021-09-09 Thread Maxime Werlen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi,

Any news about this bug ? Is this handled by upstream ?
Some urlwatch tests are failing due to this bug. I can't release a new version.

I hope someone has good news about this bug.

Thanks

Maxime
- --
Maxime Werlen
-BEGIN PGP SIGNATURE-

iQE+BAEBCgAoIRxNYXhpbWUgV2VybGVuIDxtYXhpbWVAd2VybGVuLmZyPgUCYTpU
rwAKCRBJ5XP6DXDdpufsB/4wtTPLgTK1hey/Zlwk1NApdZcKCbRnNpgHTp9FJUk/
GeLjPR1NRVikeD/FZ6AIhO4f+AJWNuR0MN8sh2eRPgLf3KLElwDDQCbSJ+HXEiM8
eS0v7znXUky9sfrXyt4RntaiF4SCUk5Dvezeo9z6Cl+8aomOPgzK1vdzZ3cgO4qp
Vo8U/Bjbng8Iz8aRD/DnEFX5UazRTdB9NazI3HbHbYepnNWfDtjoTGqwUtDVPErg
M0H+w8ncat96fKpIu5Q6QCsn/s9PqgkOnDDseugxz5oOImEfoIuq0tMSeRocfiRH
cIeJ1Aqmx6evj5Fv0Oo99RmXbh6msokawUh4H/VGZtQF
=tp1G
-END PGP SIGNATURE-



Bug#993605: lxml.etree.tostring() trailing junk

2021-09-03 Thread Jakub Wilk

Package: python3-lxml
Version: 4.6.3+dfsg-0.1
Control: affects -1 + urlwatch

After upgrading libxml2 to 2.9.12+dfsg-3, the tostring() function 
started returning strings with some trailing junk:


  >>> import lxml.etree
  >>> html = lxml.etree.fromstring('P')
  >>> lxml.etree.tostring(html[0])
  b'P'

This worked fine with libxml2 2.9.10+dfsg-6.7:

  >>> lxml.etree.tostring(html[0])
  b'P'


-- System Information:
Debian Release: bookworm/sid
 APT prefers unstable
 APT policy: (500, 'unstable')
Architecture: i386 (i686)

Versions of packages python3-lxml depends on:
ii  libc6   2.31-17
ii  libxml2 2.9.12+dfsg-3
ii  libxslt1.1  1.1.34-4
ii  python3 3.9.2-3

--
Jakub Wilk