All of lore.kernel.org
 help / color / mirror / Atom feed
* utf-8 issues on b4 master
@ 2021-07-17 20:50 Michael S. Tsirkin
  2021-07-17 21:21 ` Kyle Meyer
  0 siblings, 1 reply; 8+ messages in thread
From: Michael S. Tsirkin @ 2021-07-17 20:50 UTC (permalink / raw)
  To: Konstantin Ryabitsev, tools, users

Passing message id
bbe52a89-c7ea-c155-6226-0397f223cd80@linux.alibaba.com to b4
gives this backtrace:

Traceback (most recent call last):
  File "/scm/b4/b4/command.py", line 263, in <module>
    cmd()
  File "/scm/b4/b4/command.py", line 246, in cmd
    cmdargs.func(cmdargs)
  File "/scm/b4/b4/command.py", line 41, in cmd_mbox
    b4.mbox.main(cmdargs)
  File "/scm/b4/b4/mbox.py", line 581, in main
    msgid, msgs = get_msgs(cmdargs)
  File "/scm/b4/b4/mbox.py", line 523, in get_msgs
    msgid = b4.get_msgid(cmdargs)
  File "/scm/b4/b4/__init__.py", line 2080, in get_msgid
    msgid = get_msgid_from_stdin()
  File "/scm/b4/b4/__init__.py", line 2072, in get_msgid_from_stdin
    message = email.message_from_string(sys.stdin.read())
  File "/usr/lib64/python3.9/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd4 in position 5886: invalid continuation byte

mutt does not seem to have trouble decoding this ... weird.
-- 
MST


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-08-03 16:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-17 20:50 utf-8 issues on b4 master Michael S. Tsirkin
2021-07-17 21:21 ` Kyle Meyer
2021-07-18  1:39   ` Michael S. Tsirkin
2021-07-18  4:34     ` [PATCH b4 0/2] Avoid decoding errors when extracting message ID from stdin Kyle Meyer
2021-07-18  4:34       ` [PATCH b4 1/2] " Kyle Meyer
2021-07-18  4:34       ` [PATCH b4 2/2] Parse just headers when extracting message ID from stdin mbox Kyle Meyer
2021-07-18  4:45         ` Kyle Meyer
2021-08-03 16:03       ` [PATCH b4 0/2] Avoid decoding errors when extracting message ID from stdin Konstantin Ryabitsev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.