From ced60016fbbbf0dbbbdd09d72a0a881cef3cbec4 Mon Sep 17 00:00:00 2001 From: Ilya Palopezhentsev Date: Sun, 4 Jan 2026 20:12:35 +0100 Subject: [PATCH] reorder lines oops, committed line before the line it should go after --- lib/dtutils/system.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dtutils/system.lua b/lib/dtutils/system.lua index 31bf6b2..f155b2c 100644 --- a/lib/dtutils/system.lua +++ b/lib/dtutils/system.lua @@ -90,8 +90,8 @@ function dtutils_system.windows_command(command) file:write('for /f "tokens=2 delims=:." %%x in (\'chcp\') do set cp=%%x\n') file:write("chcp 65001>nul\n") -- change the encoding of the terminal to handle non-english characters in path file:write("\n") - file:write("set COMMAND_RC=%ERRORLEVEL%") file:write(command .. "\n") + file:write("set COMMAND_RC=%ERRORLEVEL%") file:write("\n") file:write("chcp %cp%>nul\n") file:write("exit /b %COMMAND_RC%") -- otherwise, when the real command fails, script will still return "good" error code of chcp