Skip to content
Snippets Groups Projects
Commit a4453ee5 authored by James Browning's avatar James Browning Committed by Matt Selsky
Browse files

Fix polyglot library for Python3 on NetBSD

parent 6b9894a9
No related branches found
No related tags found
Loading
Pipeline #51061840 passed
......@@ -103,9 +103,9 @@ else: # Python 3
newline="\n", line_buffering=True)
# This is the one situation where we *can* force unicode.
if "UTF-8" != sys.stdout.encoding:
if "utf-8" != sys.stdout.encoding.lower():
forced_utf8 = True
sys.stdout = make_std_wrapper(sys.stdout)
if "UTF-8" != sys.stderr.encoding:
if "utf-8" != sys.stderr.encoding.lower():
forced_utf8 = True
sys.stderr = make_std_wrapper(sys.stderr)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment