summaryrefslogtreecommitdiff
path: root/support/latexindent/LatexIndent/LogFile.pm
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-04-08 03:01:13 +0000
committerNorbert Preining <norbert@preining.info>2023-04-08 03:01:13 +0000
commit24c6de40a2869f5b6c213c2cf69e597f885f2b19 (patch)
tree5225200910d14cb8b177fad2192b492f3b254e5c /support/latexindent/LatexIndent/LogFile.pm
parentbd96eb3748479a2feb0e8a0ef06203de92766953 (diff)
CTAN sync 202304080301
Diffstat (limited to 'support/latexindent/LatexIndent/LogFile.pm')
-rw-r--r--support/latexindent/LatexIndent/LogFile.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/support/latexindent/LatexIndent/LogFile.pm b/support/latexindent/LatexIndent/LogFile.pm
index 809aa71d2d..93b6ad0930 100644
--- a/support/latexindent/LatexIndent/LogFile.pm
+++ b/support/latexindent/LatexIndent/LogFile.pm
@@ -22,6 +22,7 @@ use File::Basename; # to get the filename and directory path
use Exporter qw/import/;
use LatexIndent::Switches qw/%switches/;
use LatexIndent::Version qw/$versionNumber $versionDate/;
+use Encode qw/decode/;
our @EXPORT_OK = qw/process_switches $logger/;
our $logger;
@@ -128,6 +129,9 @@ ENDQUOTE
# cruft directory
${$self}{cruftDirectory} = $switches{cruftDirectory} || ( dirname ${$self}{fileName} );
+ # diacritics in cruft directory (highlighted in https://github.com/cmhughes/latexindent.pl/pull/439)
+ ${$self}{cruftDirectory} = decode( "utf-8", ${$self}{cruftDirectory} );
+
# if cruft directory does not exist
if ( !( -d ${$self}{cruftDirectory} ) ) {
$logger->fatal("*Could not find directory ${$self}{cruftDirectory}");