]> git.sur5r.net Git - pdfstitch/commitdiff
Handle UTF-8 filenames properly
authorJakob Haufe <sur5r@sur5r.net>
Wed, 22 Jun 2022 10:22:17 +0000 (12:22 +0200)
committerJakob Haufe <sur5r@sur5r.net>
Wed, 22 Jun 2022 10:22:17 +0000 (12:22 +0200)
Fixes https://github.com/sur5r/pdfstitch/issues/6

pdfstitch

index cc5b8330c1057206779e2f40fcc13c2aa9174a0c..f330764312562f63566e21d29bf125ec051c9fdb 100755 (executable)
--- a/pdfstitch
+++ b/pdfstitch
@@ -58,6 +58,7 @@ die "--defaultcrop can only be combined with --genmeta!\n" if($defaultcrop and (
 die "No input file specified!\n" unless $ARGV[0];
 
 my $infile = $ARGV[0];
+utf8::decode($infile);
 
 die "$infile does not exist!\n" unless -e $infile;
 die "$infile is not readable!\n" unless -r $infile;