From: Jun Su Date: Thu, 6 Feb 2020 06:34:43 +0000 (+0800) Subject: ceph.in: print decoded output in interactive mode X-Git-Tag: v15.1.1~497^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F33099%2Fhead;p=ceph.git 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 --- 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