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:
parent
79262a5230
commit
f422005d19
@ -932,7 +932,7 @@ def list_reviews(remote):
|
||||
# ((width1, value1), (width2, value2), ...) map.
|
||||
formatted_fields = []
|
||||
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("Found %d items for review" % len(reviews))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user