Bug 9955 - patchtest-oe: string encoding error on some series
Summary: patchtest-oe: string encoding error on some series
Status: RESOLVED FIXED
Alias: None
Product: Patchwork/Patchtest
Classification: Yocto Project Subprojects
Component: Patchtest (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.2 M4
Assignee: Daniela Plascencia
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-07-15 16:06 UTC by Leonardo Sandoval Gonzalez
Modified: 2017-12-06 17:03 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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