提交 677dac23 编写于 作者: R Robert Beckett 提交者: Simon Glass

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: NRobert Beckett <bob.beckett@collabora.com>
Reviewed-by: NSimon Glass <sjg@chromium.org>
上级 ab4a6aba
......@@ -251,7 +251,7 @@ class Series(dict):
cover_cc = [tools.FromUnicode(m) for m in cover_cc]
cc_list = '\0'.join([tools.ToUnicode(x)
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()
return fname
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册