From 0b7b515f11d1f75141a74d60a47add8b8632d639 Mon Sep 17 00:00:00 2001 From: lethliel Date: Fri, 24 Jan 2020 09:23:24 +0100 Subject: [PATCH] fix decoding in interactive request mode In interactive review mode: If a diff is issued and the request is accepted with 'a -m ok' the tmpfile with the diff will be read. This tmpfile.read() call is now decoded properly. --- osc/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/core.py b/osc/core.py index 73ad0efb..ba596db2 100644 --- a/osc/core.py +++ b/osc/core.py @@ -7528,7 +7528,7 @@ def request_interactive_review(apiurl, request, initial_cmd='', group=None, if tmpfile is not None: tmpfile.seek(0) # the read bytes probably have a moderate size so the str won't be too large - footer += '\n\n' + tmpfile.read() + footer += '\n\n' + decode_it(tmpfile.read()) if msg is None: try: msg = edit_message(footer = footer, template=msg_template)