From a31d4a335c692b36ad991066ab3e7bdf70ecacff Mon Sep 17 00:00:00 2001 From: Jun Su Date: Thu, 6 Feb 2020 14:34:43 +0800 Subject: [PATCH] ceph.in: print decoded output in interactive mode Under ceph CLI interactive mode, the outbuf is not decoded as utf-8 which causes the output is not properly formatted. Signed-off-by: Jun Su --- src/ceph.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph.in b/src/ceph.in index 0da8aa1e81e..92fd627bb2b 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -657,7 +657,7 @@ def new_style_command(parsed_args, cmdargs, target, sigdict, inbuf, verbose): if outs: print(outs, file=sys.stderr) if outbuf: - print(outbuf) + print(outbuf.decode('utf-8')) return ret, outbuf, outs -- 2.39.5