Browse Source

Add utf-8 char support

git-review list cannot show CL whose subject contain utf-8 char.

Implements: encode as utf-8
Change-Id: Ifa743e2ac95880172dfa52e160ae8aabaae8f337
tags/1.0.0
liuyang1 4 years ago
parent
commit
f422005d19
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      git_review/cmd.py

+ 1
- 1
git_review/cmd.py View File

@@ -932,7 +932,7 @@ def list_reviews(remote):
932 932
         #  ((width1, value1), (width2, value2), ...) map.
933 933
         formatted_fields = []
934 934
         for (width, value) in zip(review_field_width, review_value):
935
-            formatted_fields.extend([width, value])
935
+            formatted_fields.extend([width, value.encode('utf-8')])
936 936
         print(review_field_format % tuple(formatted_fields))
937 937
     print("Found %d items for review" % len(reviews))
938 938
 

Loading…
Cancel
Save