fix: undo.bat — add chcp 65001 for UTF-8 Cyrillic paths

This commit is contained in:
admin committed 2026-06-29 14:28:59 +02:00
1 parent 174d157d45
commit 80912109ba
1 file changed
+1
+1
View File
@@ -570,6 +570,7 @@ def _write_logs(entries: list[dict[str, str]],
# Undo .bat — restores files in reverse order of columns
with undo_path.open('w', encoding='utf-8') as f:
f.write('@echo off\r\n')
f.write('chcp 65001 >nul\r\n')
f.write('title Raskidator-3000 — Undo move\r\n')
f.write('setlocal enabledelayedexpansion\r\n')
f.write('echo Restoring files...\r\n')