Commit ad4715ce authored by Andreas Bießmann's avatar Andreas Bießmann Committed by Jeremy Kerr
Browse files

pwclient: fix handling of UTF-8 char in submitter name

This patch fixes following bug in 'list':

# pwclient list -p uboot -w andreas.devel | grep New
Traceback (most recent call last):
  File "/Users/andreas/bin/pwclient", line 463, in <module>
  File "/Users/andreas/bin/pwclient", line 411, in main
    action_list(rpc, filt, submitter_str, delegate_str)
  File "/Users/andreas/bin/pwclient", line 182, in action_list
    (person['name'], person['email'])
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in
position 32: ordinal not in range(128)
Signed-off-by: default avatarAndreas Bießmann <>
Signed-off-by: default avatarJeremy Kerr <>
parent 7fb5a647
......@@ -179,7 +179,8 @@ def action_list(rpc, filter, submitter_str, delegate_str):
for id in ids:
person = rpc.person_get(id)
print "Patches submitted by %s <%s>:" % \
(person['name'], person['email'])
(unicode(person['name']).encode("utf-8"), \
f = filter
f.add("submitter_id", id)
patches = rpc.patch_list(f.d)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment