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
This commit is contained in:
liuyang1 2015-04-03 08:31:24 +08:00
parent 79262a5230
commit f422005d19
1 changed files with 1 additions and 1 deletions

View File

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