summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2017-02-07 07:11:00 (GMT)
committerSimon Glass <sjg@chromium.org>2017-02-08 13:12:16 (GMT)
commitf11a0af713a714ee2efcd810dd81c6dfd59381aa (patch)
tree735a916a934372ada37391a8e9f6b02b94205019 /tools
parent8d7523c55c2c4000af15dfcba658eef35cc14302 (diff)
downloadu-boot-f11a0af713a714ee2efcd810dd81c6dfd59381aa.tar.xz
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: Chris Packham <judge.packham@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/patman/series.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/patman/series.py b/tools/patman/series.py
index 38a452e..c1b8652 100644
--- a/tools/patman/series.py
+++ b/tools/patman/series.py
@@ -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)
fd.close()
return fname