From d1d45f461804250a7a1cd364d8e4bc82edaf17ee Mon Sep 17 00:00:00 2001 From: lethliel Date: Wed, 18 Sep 2019 10:49:39 +0200 Subject: [PATCH] fix decoding for osc cat use sys.stdout.buffer.write() to print encoded data correctly --- osc/commandline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 5efd1d5a..bfeada4a 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -8426,7 +8426,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. if isinstance(data, str): sys.stdout.write(data) else: - sys.stdout.write(decode_it(data)) + sys.stdout.buffer.write(data) # helper function to download a file from a specific revision