Skip to content
Snippets Groups Projects
Commit 677dac23 authored by Robert Beckett's avatar Robert Beckett Committed by Simon Glass
Browse files

patman: fix coverletter cc list with nulls


fixes: 8ab452d5

When compiling list of cover letter cc addresses, using null as a
separater, then encoding to utf-8 results in lots of "\x00" as
separators. patman then doesnt understand that when it comes to
repoting the list to send-email.

Fix this by not encoding to utf-8, as done for the other patch files.

Signed-off-by: default avatarRobert Beckett <bob.beckett@collabora.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent ab4a6aba
No related branches found
No related tags found
No related merge requests found
...@@ -251,7 +251,7 @@ class Series(dict): ...@@ -251,7 +251,7 @@ class Series(dict):
cover_cc = [tools.FromUnicode(m) for m in cover_cc] cover_cc = [tools.FromUnicode(m) for m in cover_cc]
cc_list = '\0'.join([tools.ToUnicode(x) cc_list = '\0'.join([tools.ToUnicode(x)
for x in sorted(set(cover_cc + all_ccs))]) for x in sorted(set(cover_cc + all_ccs))])
print(cover_fname, cc_list.encode('utf-8'), file=fd) print(cover_fname, cc_list, file=fd)
fd.close() fd.close()
return fname return fname
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment