Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • cerbero cerbero
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 101
    • Issues 101
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 35
    • Merge requests 35
  • 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
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamerGStreamer
  • cerberocerbero
  • Merge requests
  • !54

cerbero: Fix cross-ios framework merging inside SSH

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Nirbheek Chauhan requested to merge nirbheek/cerbero:fix-encoding-ios into master Dec 14, 2018
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 2

The encoding when logging into a mac machine with SSH is ASCII, and calling file -bh on some of our translation files now outputs unicode information, in the script that the language for that translation file uses. This leads to a stdout decode error.

We don't actually care about that since we only use the output for categorising file types, so ignore it.

Recipe 'glib' failed at the build step 'merge'
Traceback (most recent call last):
  File "./cerbero/build/oven.py", line 155, in _cook_recipe
    stepfunc()
  File "./cerbero/build/recipe.py", line 559, in merge
    generator.merge_files(inputs, dirs)
  File "./cerbero/tools/osxuniversalgenerator.py", line 91, in merge_files
    self.do_merge(f, dirs)
  File "./cerbero/tools/osxuniversalgenerator.py", line 156, in do_merge
    action = self._detect_merge_action(full_filepaths)
  File "./cerbero/tools/osxuniversalgenerator.py", line 130, in _detect_merge_action
    ftype = self.get_file_type(f)
  File "./cerbero/tools/osxuniversalgenerator.py", line 122, in get_file_type
    return self._call(cmd)[0:-1] #remove trailing \n
  File "./cerbero/tools/osxuniversalgenerator.py", line 236, in _call
    output = output.decode(sys.stdout.encoding)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 141: ordinal not in range(128)
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix-encoding-ios