Fix UnicodeEncodeError on Windows in validate_plugins.py

This commit is contained in:
Admin
2026-03-05 03:29:04 -08:00
committed by Pawel Huryn
parent 9f9ee324a2
commit 7144952306
+5
View File
@@ -463,6 +463,11 @@ def print_report(all_results: list[dict]):
def main():
"""Find and validate all plugins in the collection."""
# Ensure UTF-8 output on Windows
if sys.platform == 'win32':
import io
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
# Determine base path
if len(sys.argv) > 1:
base_path = sys.argv[1]