#197 UnicodeError in yamlish from rpmlint
Closed: Fixed None Opened 9 years ago by kparal.

Here's a failed build:
http://taskotron-dev.fedoraproject.org/taskmaster/builders/x86_64/builds/20598

  File "/usr/lib/python2.7/site-packages/yamlish.py", line 159, in str_representer_compact_multiline
    data = data.decode('utf-8') # assumes all your strings are UTF-8 encoded
  File "/usr/lib64/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 0xc3 in position 684: invalid continuation byte

I see the same behavior when I run it locally. I assume the problem comes from:

fbida.x86_64: W: manual-page-warning /usr/share/man/man1/fbi.1.gz 228: warning: macro `BR� fbi' not defined (possibly missing space after `BR')

Either it is a problem in rpmlint, or (more likely) the package man page is wrong. We can of course fix that. But I think a better fix would be if we didn't crash in these cases and were able to reprint the output as provided.

Investigate. Fix. Prosper.


Please note this might get worked around by D227 - if we stop processing rpmlint output completely. Of course that doesn't fix the problem, it can occur with other checks as well.

I sent a patch fixing the issue to mcepl.

This is being handled by mcepl, lowering the ticket's priority.

The yamlish library now has the proposed fix in place: https://gitlab.com/mcepl/yamlish/commit/dba0b0a5b65c57c71c50ce1681f3286869e231bc I'll spin-up a ticket to handle the change in libtaskotron.

Metadata Update from @kparal:
- Issue tagged with: easyfix

6 years ago

Login to comment on this ticket.

Metadata