[PATCH] pwclient: fix handling of UTF-8 char in submitter name

Wolfgang Denk wd at denx.de
Fri Dec 10 17:40:00 EST 2010

Dear Jeremy Kerr,

In message <201012101354.32301.jk at ozlabs.org> you wrote:
> > When running this on the U-Boot list I now get sometimes things like
> > this:
> > 
> > Traceback (most recent call last):
> >   File "/home/wd/bin/pwparser", line 241, in <module>
> >     sys.exit(main(sys.argv))
> >   File "/home/wd/bin/pwparser", line 226, in main
> >     content = sys.stdin.read().decode('utf-8')
> >   File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
> >     return codecs.utf_8_decode(input, errors, True)
> > UnicodeDecodeError: 'utf8' codec can't decode byte 0xdf in position 478:
> > invalid continuation byte
> Sounds like your input isn't valid utf-8? Would an option to select the 
> encoding help?

I think a number of messages have special characters in iso8859-1 and

A n option would not really help. I'm running into this when
auto-updating the status of some patches using a script similat to
what you just posted.

Best regards,

Wolfgang Denk

DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The human mind treats a new idea the way the body  treats  a  strange
protein - it rejects it.                                 - P. Medawar

More information about the Patchwork mailing list