From b5ec00836d5c12ea84d2345059876dabd436525f Mon Sep 17 00:00:00 2001 From: Jakob Haufe Date: Wed, 22 Jun 2022 12:22:17 +0200 Subject: [PATCH] Handle UTF-8 filenames properly Fixes https://github.com/sur5r/pdfstitch/issues/6 --- pdfstitch | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5