tools.linux.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Mark Brown" <broonie@kernel.org>
To: tools@linux.kernel.org, konstantin@linuxfoundation.org
Subject: Exception from b4 ty
Date: Fri, 2 Oct 2020 22:12:48 +0100	[thread overview]
Message-ID: <20201002211248.GI5527@sirena.org.uk> (raw)

[-- Attachment #1: Type: text/plain, Size: 2155 bytes --]

Hi,

Attempting to generate thanks with b4 ty -a using current git master I
get a traceback:

Found 41 of your commits since 1.week
Calculating patch hashes, may take a moment...
  Located: [PATCH v3 0/9] Some fixes for spi-s3c64xx
---
Generating 1 thank-you letters
  Writing: /tmp/tmp.CwdU649vJ4/l_stelmach_samsung_com_patch_v3_0_9_some_fixes_for_spi_s3c64xx.thanks
Traceback (most recent call last):
  File "/home/broonie/git/b4/b4/command.py", line 239, in <module>
    cmd()
  File "/home/broonie/git/b4/b4/command.py", line 222, in cmd
    cmdargs.func(cmdargs)
  File "/home/broonie/git/b4/b4/command.py", line 60, in cmd_ty
    b4.ty.main(cmdargs)
  File "/home/broonie/git/b4/b4/ty.py", line 629, in main
    auto_thankanator(cmdargs)
  File "/home/broonie/git/b4/b4/ty.py", line 384, in auto_thankanator
    send_messages(applied, cmdargs.gitdir, cmdargs.outdir, wantbranch, since=cmdargs.since)
  File "/home/broonie/git/b4/b4/ty.py", line 431, in send_messages
    fh.write(msg.as_bytes())
  File "/usr/lib/python3.7/email/message.py", line 178, in as_bytes
    g.flatten(self, unixfrom=unixfrom)
  File "/usr/lib/python3.7/email/generator.py", line 116, in flatten
    self._write(msg)
  File "/usr/lib/python3.7/email/generator.py", line 181, in _write
    self._dispatch(msg)
  File "/usr/lib/python3.7/email/generator.py", line 214, in _dispatch
    meth(msg)
  File "/usr/lib/python3.7/email/generator.py", line 432, in _handle_text
    super(BytesGenerator,self)._handle_text(msg)
  File "/usr/lib/python3.7/email/generator.py", line 249, in _handle_text
    self._write_lines(payload)
  File "/usr/lib/python3.7/email/generator.py", line 155, in _write_lines
    self.write(line)
  File "/usr/lib/python3.7/email/generator.py", line 406, in write
    self._fp.write(s.encode('ascii', 'surrogateescape'))
UnicodeEncodeError: 'ascii' codec can't encode character '\u0141' in position 35: ordinal not in range(128)

This is with commit ca6d35e7728c17b505e6 (Fix some cherry-picking corner
cases) on

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks,
Mark

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 499 bytes --]

             reply	other threads:[~2020-10-02 21:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-02 21:12 Mark Brown [this message]
2020-10-03  1:17 ` Exception from b4 ty Konstantin Ryabitsev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201002211248.GI5527@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=konstantin@linuxfoundation.org \
    --cc=tools@linux.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).