From 65e70f7313091fa69e09e54499fe7e863bf47340 Mon Sep 17 00:00:00 2001 From: Joey Vagedes Date: Thu, 3 Aug 2023 10:37:32 -0700 Subject: [PATCH] update --- edk2toollib/utility_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edk2toollib/utility_functions.py b/edk2toollib/utility_functions.py index 0f557041..04c54fa4 100644 --- a/edk2toollib/utility_functions.py +++ b/edk2toollib/utility_functions.py @@ -70,7 +70,7 @@ def reader(filepath, outstream, stream, logging_level=logging.INFO, encodingErro f = open(filepath, "w") while True: - s = stream.readline().decode(sys.stdout.encoding, errors=encodingErrors) + s = stream.readline().decode(sys.stdout.encoding or 'utf-8', errors=encodingErrors) if not s: break if (f is not None):