Commit f11a0af7 authored by Chris Packham's avatar Chris Packham Committed by Simon Glass

patman: Handle non-ascii characters in names

When gathering addresses for the Cc list patman would encounter a
UnicodeDecodeError due to non-ascii characters in the author name.
Address this by explicitly using utf-8 when building the Cc list.
Signed-off-by: default avatarChris Packham <>
Acked-by: default avatarSimon Glass <>
parent 8d7523c5
......@@ -235,7 +235,8 @@ class Series(dict):
if cover_fname:
cover_cc = gitutil.BuildEmailList(self.get('cover_cc', ''))
print(cover_fname, ', '.join(set(cover_cc + all_ccs)), file=fd)
cc_list = ', '.join([x.decode('utf-8') for x in set(cover_cc + all_ccs)])
print(cover_fname, cc_list.encode('utf-8'), file=fd)
return fname
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment