Module: check_mk
Branch: master
Commit: 72269d2afb2c68e807bd647e7bb1bd2a5bcd79d7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=72269d2afb2c68…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Jun 29 13:42:34 2017 +0200
4940 FIX Handle non-ASCII characters in event console messages
Messages containing non-ASCII characters were silently dropped in the event
console. This has been fixed.
Change-Id: I9fe9fbeeffa90d31aa8950c4998c0485ac399d5b
---
.werks/4940 | 11 +++++++++++
bin/mkeventd | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4940 b/.werks/4940
new file mode 100644
index 0000000..19655a0
--- /dev/null
+++ b/.werks/4940
@@ -0,0 +1,11 @@
+Title: Handle non-ASCII characters in event console messages
+Level: 1
+Component: ec
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1498736427
+Class: fix
+
+Messages containing non-ASCII characters were silently dropped in the event
+console. This has been fixed.
diff --git a/bin/mkeventd b/bin/mkeventd
index a11ee13..a329445 100755
--- a/bin/mkeventd
+++ b/bin/mkeventd
@@ -3156,7 +3156,7 @@ class StatusServer:
# TODO: Change the lock type in future?
# process_raw_lines("%s" % ";".join(arguments))
with file(g_pipe_path, "w") as pipe:
- pipe.write("%s\n" % ";".join(arguments))
+ pipe.write(("%s\n" %
";".join(arguments)).encode("utf-8"))
def handle_command_changestate(self, arguments):