From eb249d9a44e73ca5a50a145fe802bf6c5f01d1b7 Mon Sep 17 00:00:00 2001 From: robinjhuang Date: Wed, 29 Jan 2025 14:47:19 -0800 Subject: [PATCH] Add stdout in utf-8. --- nim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nim.py b/nim.py index e55b096..c4b9d9a 100644 --- a/nim.py +++ b/nim.py @@ -42,8 +42,8 @@ class NIMManager: if result.returncode != 0: error_msg = ( f"Failed to set permissions for {cache_path}:\n" - f"stdout: {result.stdout.decode('ascii')}\n" - f"stderr: {result.stderr.decode('ascii')}" + f"stdout: {result.stdout.decode('utf-8')}\n" + f"stderr: {result.stderr.decode('utf-8')}" ) raise Exception(error_msg)