Bug#383487: parsing packages files: Reads from pipe results in corrupt data

2006-08-18 Thread Jeroen van Wolffelaar
reassign 383487 apt thanks On Fri, Aug 18, 2006 at 02:00:53PM +0200, Jeroen van Wolffelaar wrote: > This does not exclude the possibility that the problem is in libapt. > Looking at the differences in tagfile.cc in apt, there are > buffering/mmap changes made to the reading code, which is IMHO hig

Bug#383487: parsing packages files: Reads from pipe results in corrupt data

2006-08-18 Thread Jeroen van Wolffelaar
On Thu, Aug 17, 2006 at 05:53:35PM +0200, Jeroen van Wolffelaar wrote: > Package: python-apt > Version: 0.6.19 > Severity: serious I could reproduce this with 0.5.10 (sarge's version) of python-apt, compiled on unstable. 0.5.10 on stable does not exhibit this problem. So: env. apt python-apt

Bug#383487: parsing packages files: Reads from pipe results in corrupt data

2006-08-17 Thread Jeroen van Wolffelaar
Package: python-apt Version: 0.6.19 Severity: serious Please find attached a simple python script that can parse and print a package file, via a pipe using cat or directly with 'open()'. With open, the result will be identical to the original, as verifiable via 'diff'. However, using os.popen with