Changeset 273 for MMagic

Show
Ignore:
Timestamp:
09/19/06 13:37:42 (6 years ago)
Author:
knok
Message:

Added hex patch.

Location:
MMagic/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • MMagic/trunk/ChangeLog

    r272 r273  
     12006-09-19  NOKUBI Takatsugu  <knok@daionet.gr.jp> 
     2 
     3        * MMagic.pm (readMagicLine): Added Hex representation support. 
     4          (The patch made by Man Min Yan, thank you) 
     5 
    162006-07-01  NOKUBI Takatsugu  <knok@daionet.gr.jp> 
    27 
    38        * MMagic.pm (checktype_container): Added container check. 
    49          (Powerd by CodeFest 2006 Akihabara 
    5            https://members.fsij.org/trac/codefestakihabara2006) 
     10           https://members.fsij.org/trac/codefestakihabara2006c) 
    611 
    7122006-06-26  NOKUBI Takatsugu  <knok@daionet.gr.jp> 
  • MMagic/trunk/MMagic.pm

    r272 r273  
    12791279 
    12801280        # do octal/hex conversion 
    1281         $testval =~ s/\\([x0-7][0-7]?[0-7]?)/chr(oct($1))/eg; 
     1281        # manmin 
     1282        $testval =~ s/\\(x[0-9a-fA-F][0-9a-fA-F])/chr(oct($1))/eg; 
     1283        $testval =~ s/\\([0-7][0-7]?[0-7]?)/chr(oct($1))/eg; 
     1284        # end manmin 
    12821285 
    12831286        # do single char escapes