Open DmNosachev opened 1 week ago
Everything is supposed to be encoded as UTF-8, but it looks like that got lost when I split off the latexrestricted
Python package. I've fixed this in the dev version on GitHub, and will be releasing new versions of everything within the next few hours.
Problem Using inline code block with non-latin script (e.g. Russian) in minted works works the same as in the 2.x version, but not with
\inputminted
. It gives the following error message:! String contains an invalid utf-8 sequence
with the number on the corresponding line of the .minted file.MWE (LuaLaTeX):
Compile command (Windows 10, TeX Live 2024):
lualatex --interaction=nonstopmode --halt-on-error -shell-escape minted3test.tex
. This example compiles without problems, but if I replaceminted
environment with\inputminted
(from the file which contains the same code block:\inputminted{c}{test.c}
) compilation fails with the following message:Workaround I have noticed that .minted file was created with Windows-1251 encoding (8-bit encoding for some Cyrillic languages). Converting it to utf-8 temporarily solves the problem.