diff options
Diffstat (limited to 'support/latexindent/LatexIndent/LogFile.pm')
-rw-r--r-- | support/latexindent/LatexIndent/LogFile.pm | 4 |
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}"); |