diff options
author | Karl Berry <karl@freefriends.org> | 2023-04-07 20:53:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-04-07 20:53:36 +0000 |
commit | 07ecfd020365d0aa57d05f16cde592e73066fc07 (patch) | |
tree | e8f3580406911d1209164497c90f2f6f49d67dd4 /Master/texmf-dist/scripts/latexindent/LatexIndent/LogFile.pm | |
parent | ed6247daaa6ff33f1d7202c5e8fc465ae1006371 (diff) |
latexindent (7apr23)
git-svn-id: svn://tug.org/texlive/trunk@66794 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/latexindent/LatexIndent/LogFile.pm')
-rw-r--r-- | Master/texmf-dist/scripts/latexindent/LatexIndent/LogFile.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/latexindent/LatexIndent/LogFile.pm b/Master/texmf-dist/scripts/latexindent/LatexIndent/LogFile.pm index 809aa71d2d5..93b6ad0930a 100644 --- a/Master/texmf-dist/scripts/latexindent/LatexIndent/LogFile.pm +++ b/Master/texmf-dist/scripts/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}"); |