Werk #6373: Fixed UnicodeEncodeError when piping "cmk -M" to stream or file

Component Core & setup
Title Fixed UnicodeEncodeError when piping "cmk -M" to stream or file
Date Jul 27, 2018
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
1.6.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.5.0 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0p35 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

The output of e.g. "cmk -M" was not correctly encoded when the output was written to streams or files leading to a "UnicodeEncodeError: 'ascii' codec can't encode character" error.

To the list of all Werks