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

Jeremy Kerr jk at ozlabs.org
Fri Dec 10 16:54:32 EST 2010


Hi Wolfgang,

> 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?

Cheers,


Jeremy


More information about the Patchwork mailing list