@samitouri / QOSAMI-WSL / commits / 334696eb

Update localization script to reconfigure output streams as utf8 (#40528)

Blue committed May 13, 2026 at 16:11 UTC 334696eb0e10b6d023697a778d86759c2dd4138a
1 file changed +3
tools/devops/validate-localization.py
+3
@@ -6,6 +6,9 @@ import re
6 import xml.etree.ElementTree
7 from xml.sax.saxutils import escape
8
9 +sys.stdout.reconfigure(encoding='utf-8', errors='replace')
10 +sys.stderr.reconfigure(encoding='utf-8', errors='replace')
11 +
12 def validate_line_endings(path: str, content: bytes):
13 line = 0
14 for i in range(0, len(content)):