Skip to content

Commit 3a67285

Browse files
authored
Merge pull request #3573 from 1c-syntax/copilot/fix-unicode-encoding-error
Fix UnicodeEncodeError in verify-archive-size.py on Windows runners
2 parents 075a1cd + 3f639e9 commit 3a67285

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/scripts/verify-archive-size.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import os
22
import sys
3+
import io
4+
5+
# Ensure UTF-8 encoding for stdout on Windows to handle Unicode characters
6+
if sys.platform == 'win32':
7+
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
38

49

510
def verify_archive_size(archive_path, min_size_mb=1):

0 commit comments

Comments
 (0)