Bug 9955

Summary: patchtest-oe: string encoding error on some series
Product: [Yocto Project Subprojects] Patchwork/Patchtest Reporter: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Component: PatchtestAssignee: Daniela Plascencia <daniela.plascencia>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: sgw
Version: 2.3   
Target Milestone: 2.2 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Leonardo Sandoval Gonzalez 2016-07-15 16:06:54 UTC
series are being parse by unidiff python module and for some series [1], when converting a specific patch into a string, it raises the following exception:

Traceback (most recent call last):
  File "/usr/lib64/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/home/lsandov1/repos/pt-oe/tests/patch/signed_off_by/test_signed_off_by.py", line 34, in test_signed_off_by_format
    payload = str(newpatch)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u201c' in position 632: ordinal not in range(128)
None

[1] https://patchwork.openembedded.org/series/47/

This is another problem observed from the unidiff module (the other one is 
https://bugzilla.yoctoproject.org/show_bug.cgi?id=9953).
Comment 1 Leonardo Sandoval Gonzalez 2016-08-31 15:02:46 UTC
Due to time constrains, moving it to M4.
Comment 2 Daniela Plascencia 2016-09-28 16:24:19 UTC
Changing status to resolved fixed