User: sits    
  Date: 07/08/17 21:17:19

  Modified:    .        CHANGELOG
               lib/Codestriker/FileParser Parser.pm
  Log:
  * Handle topic text that starts with the UTF-8 BOM.
  
  
  
  Index: CHANGELOG
  ===================================================================
  RCS file: /cvsroot/codestriker/codestriker/CHANGELOG,v
  retrieving revision 1.211
  retrieving revision 1.212
  diff -u -r1.211 -r1.212
  --- CHANGELOG 18 Aug 2007 04:15:46 -0000      1.211
  +++ CHANGELOG 18 Aug 2007 04:17:19 -0000      1.212
  @@ -45,6 +45,8 @@
   * When calculating metrics, make sure email addresses are handled in
     a case-insensitive manner.
   
  +* Handle topic text that starts with the UTF-8 BOM.
  +
   Version 1.9.3
   
   * The project list screen now displays for each project, the total
  
  
  
  
  
  Index: Parser.pm
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/lib/Codestriker/FileParser/Parser.pm,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- Parser.pm 10 Jun 2006 02:58:34 -0000      1.23
  +++ Parser.pm 18 Aug 2007 04:17:19 -0000      1.24
  @@ -57,7 +57,13 @@
       }
   
       binmode $fh;
  +    my $first_line = 1;
       while (<$fh>) {
  +     if ($first_line) {
  +         # Remove the UTF8 BOM if it exists.
  +         s/^\xEF\xBB\xBF//o; 
  +         $first_line = 0;
  +     }
        my $line = Codestriker::decode_topic_text($_);
        $line =~ s/\r\n/\n/go;
        print $tmpfh $line;
  
  
  

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Codestriker-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/codestriker-commits

Reply via email to