New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: decode the name of the backup file #439
Conversation
Thanks very much, that's really helpful. I've merged this and it'll be part of the next release. |
For reference, see also ee82ad0 |
Thank you for your quick response! I updated latexindent to v3.20.5 and tried the example on my previous comment. I noticed that there's still something wrong. After calling
If I \begin{document}
Some text...
\end{document} Does the same error occur on your computer? EDIT: The same error occurs without the EDIT 2: It seems that latexindent works correctly if I comment out this line: latexindent.pl/LatexIndent/LogFile.pm Line 133 in 55307eb
|
Thanks for the follow-up. I can confirm the behaviour you describe. As of 1b859d3 I have updated
Can you get the |
I ran the tests and everything is working now. |
Thanks I'll get this released soon. |
what is this pull request about?
This pull request features a fix to a bug that occurs when working with LaTeX files whose names include characters with diacritics (e.g. å, ä, and ö that are used in Finnish and Swedish among many other languages).
does this relate to an existing issue?
No.
does this change any existing behaviour?
Yes.
what does this add?
When calling latexindent.pl with the
-w
flag, latexindent.pl will make a copy of the original file before overwriting it. However, if the file path contains characters with diacritics, latexindent.pl will not work, instead it prints an error message. For example, create a directory calledäö
and add a LaTeX file calledäö.tex
inside it.äö.tex
can have the following content:When calling
latexindent.pl -w äö/äö.tex
, the following error message will be printed:With the fix that I made, the problem goes away and the output is how it's supposed to be:
how do I test this?
Please consider the example given above.
anything else?
Please notice that I have never written any Perl code before this. Nevertheless this seems to be working. Documentation about the
decode
method can be found here.