From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Sat, 22 Apr 2017 17:53:36 -0600 Subject: [U-Boot] [PATCH] patman: encode CC list to UTF-8 In-Reply-To: <1492608257-924-1-git-send-email-philipp.tomsich@theobroma-systems.com> References: <1492608257-924-1-git-send-email-philipp.tomsich@theobroma-systems.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de +Tom On 19 April 2017 at 07:24, Philipp Tomsich wrote: > > This change encodes the CC list to UTF-8 to avoid failures on > maintainer-addresses that include non-ASCII characters (observed on > Debian 7.11 with Python 2.7.3). > > Without this, I get the following failure: > Traceback (most recent call last): > File "tools/patman/patman", line 159, in > options.add_maintainers) > File "[snip]/u-boot/tools/patman/series.py", line 234, in MakeCcFile > print(commit.patch, ', '.join(set(list)), file=fd) > UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 81: ordinal not in range(128) > from Heiko's email address: > [..., u'"Heiko St\xfcbner" ', ...] > > While with this change added this encodes to: > "=?UTF-8?q?Heiko=20St=C3=BCbner?= " > > Signed-off-by: Philipp Tomsich > --- > > tools/patman/series.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Simon Glass