Changeset 343

Show
Ignore:
Timestamp:
07/20/06 15:33:11 (18 years ago)
Author:
jerome
Message:

Fixed very important bug in file type autodetection code.

Location:
pkpgcounter/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/NEWS

    r339 r343  
    2222pkpgcounter News : 
    2323 
     24  * 1.83 : 
     25   
     26    - Fixed a famously known 'brown paper bag' issue with file type autodetection.  
     27     
    2428  * 1.82 : 
    2529   
  • pkpgcounter/trunk/pkpgpdls/pcl345.py

    r339 r343  
    8686           self.firstblock.startswith("\033%8\033") or \ 
    8787           (self.firstblock.find("\033%-12345X") != -1) or \ 
    88            self.firstblock.find("@PJL ENTER LANGUAGE=PCL\012\015\033") or \ 
     88           (self.firstblock.find("@PJL ENTER LANGUAGE=PCL\012\015\033") != -1) or \ 
    8989           (self.firstblock.startswith(chr(0xcd)+chr(0xca)) and self.firstblock.find("\033E\033")) : 
    9090            self.logdebug("DEBUG: Input file is in the PCL3/4/5 format.") 
  • pkpgcounter/trunk/pkpgpdls/version.py

    r339 r343  
    2020# 
    2121 
    22 __version__ = "1.82" 
     22__version__ = "1.83" 
    2323 
    2424__doc__ = """pkpgcounter : a generic Page Description Languages parser."""