Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • diffoscope diffoscope
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 145
    • Issues 145
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Reproducible BuildsReproducible Builds
  • diffoscopediffoscope
  • Issues
  • #77
Closed
Open
Issue created Nov 21, 2019 by Matt Weber@matthewlweber-guest

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 Nov 21, 2019 by Matt Weber
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking