Changeset 209 for pkpgcounter

Show
Ignore:
Timestamp:
06/15/05 17:47:33 (19 years ago)
Author:
jerome
Message:

Fix for rotten printer drivers which prefix datas with
a huge number of NUL bytes (I've just seen an example
with 11000 NUL bytes as the prefix !)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pdlanalyzer/analyzer.py

    r203 r209  
    183183        # Try to detect file type by reading first block of datas     
    184184        self.infile.seek(0) 
    185         firstblock = self.infile.read(4 * KILOBYTE) 
     185        firstblock = self.infile.read(16 * KILOBYTE) 
    186186        try : 
    187187            self.infile.seek(-LASTBLOCKSIZE, 2)