Skip to content

cross built golang binary files

I get a unicode error when the specialize.py:36 code tries to figure out the type of file. In my case that was runc/docker/containerd in my buildroot build.

Any tips on adding the new type?

  File "/accts/mlweber1/upstream_repos/diffoscope/diffoscope/comparators/utils/specialize.py", line 49, in specialize
    if try_recognize(file, cls, cls.recognizes):
  File "/accts/mlweber1/upstream_repos/diffoscope/diffoscope/comparators/utils/specialize.py", line 36, in try_recognize
    if not recognizes(file):
  File "/accts/mlweber1/upstream_repos/diffoscope/diffoscope/comparators/debian.py", line 273, in recognizes
    buildinfo = Dsc(f)
 File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1273, in __init__
    _multivalued.__init__(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1154, in __init__
    Deb822.__init__(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/debian/deb822.py", line 340, in __init__
    self._internal_parser(sequence, fields)
  File "/usr/lib/python3/dist-packages/debian/deb822.py", line 445, in _internal_parser
    line = self._detect_encoding(line)
  File "/usr/lib/python3/dist-packages/debian/deb822.py", line 221, in _detect_encoding
    raise e
  File "/usr/lib/python3/dist-packages/debian/deb822.py", line 210, in _detect_encoding
    return value.decode(self.encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x84 in position 206: invalid start byte
Edited by Matt Weber
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information