From: Jakob Haufe Date: Wed, 22 Jun 2022 10:22:17 +0000 (+0200) Subject: Handle UTF-8 filenames properly X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b5ec00836d5c12ea84d2345059876dabd436525f;p=pdfstitch Handle UTF-8 filenames properly Fixes https://github.com/sur5r/pdfstitch/issues/6 --- diff --git a/pdfstitch b/pdfstitch index cc5b833..f330764 100755 --- 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;