[Git][NTPsec/ntpsec][master] Fix polyglot library for Python3 on NetBSD

Matt Selsky gitlab at mg.gitlab.com
Sat Mar 9 18:41:45 UTC 2019



Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
a4453ee5 by James Browning at 2019-03-09T18:38:24Z
Fix polyglot library for Python3 on NetBSD

- - - - -


1 changed file:

- pylib/poly.py


Changes:

=====================================
pylib/poly.py
=====================================
@@ -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)



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a4453ee5a4edf87cf081fe69f5c214a8b2a82b58

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a4453ee5a4edf87cf081fe69f5c214a8b2a82b58
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20190309/bd68d71e/attachment.html>


More information about the vc mailing list