Changeset 6eaca65 in lab.git for misc


Ignore:
Timestamp:
Mar 10, 2013 7:08:28 PM (12 years ago)
Author:
mitty <mitty@…>
Branches:
master, trunk
Children:
4181361
Parents:
a1128c4
Message:
  • treat filename with unknown coding set as UTF-8

git-svn-id: https://lab.mitty.jp/svn/lab/trunk@204 7d2118f6-f56c-43e7-95a2-4bb3031d96e7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/save.pl

    ra1128c4 r6eaca65  
    3939                Encode::FB_HTMLCREF 
    4040            ); 
    41             print ": $filename\n"; 
    4241        } 
     42        else { 
     43            print "utf8?"; 
     44            $filename = encode( 
     45                $coding, 
     46                decode("utf8", $filename), 
     47                Encode::FB_HTMLCREF 
     48            ); 
     49        } 
     50        print ": $filename\n"; 
    4351         
    4452        my $suffix = 1; 
Note: See TracChangeset for help on using the changeset viewer.