From 4f139d2803773c86e5cf557c879392e7b79238b3 Mon Sep 17 00:00:00 2001
From: lingsheng <lingsheng@huawei.com>
Date: Tue, 22 Sep 2020 14:40:35 +0800
Subject: [PATCH 3/6] Fix crit x UnicodeDecodeError

---
 lib/py/cli.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/py/cli.py b/lib/py/cli.py
index 966dd4e..f7bda23 100755
--- a/lib/py/cli.py
+++ b/lib/py/cli.py
@@ -25,7 +25,7 @@ def outf(opts):
 
 
 def dinf(opts, name):
-    return open(os.path.join(opts['dir'], name))
+    return open(os.path.join(opts['dir'], name), 'rb')
 
 
 def decode(opts):
-- 
1.8.3.1

