[Git][NTPsec/ntpsec][master] Fixed ntpmon unsupported locale bug
Ian Bruene
gitlab at mg.gitlab.com
Fri Sep 29 03:20:47 UTC 2017
Ian Bruene pushed to branch master at NTPsec / ntpsec
Commits:
dacbcb6a by Ian Bruene at 2017-09-28T22:20:20-05:00
Fixed ntpmon unsupported locale bug
- - - - -
1 changed file:
- ntpclients/ntpmon
Changes:
=====================================
ntpclients/ntpmon
=====================================
--- a/ntpclients/ntpmon
+++ b/ntpclients/ntpmon
@@ -170,7 +170,9 @@ class Fatal(Exception):
class OutputContext:
def __enter__(self):
"Begin critical region."
- locale.setlocale(locale.LC_ALL, '')
+ print(sys.stdout.encoding)
+ print(repr(locale.getlocale()))
+ locale.setlocale(locale.LC_ALL, 'C.UTF-8')
global stdscr
stdscr = curses.initscr()
try:
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/dacbcb6adbf72f79b4407499718e4ed555ab97af
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/dacbcb6adbf72f79b4407499718e4ed555ab97af
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/20170929/71824283/attachment.html>
More information about the vc
mailing list