fix an encoding bug

This commit is contained in:
Sina Atalay 2023-11-19 18:48:35 +01:00 committed by Jeffrey Goldberg
parent cce1ce7f35
commit c3b64cb32a
1 changed files with 1 additions and 0 deletions

View File

@ -454,6 +454,7 @@ def run_latex(latex_file_path: str) -> str:
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stdin=subprocess.DEVNULL, # don't allow TinyTeX to ask for user input stdin=subprocess.DEVNULL, # don't allow TinyTeX to ask for user input
text=True, text=True,
encoding="utf-8",
) as latex_process: ) as latex_process:
output, error = latex_process.communicate() output, error = latex_process.communicate()