vercel / vercel/hyper

Unknown encoding: cp0

Open
#3,606 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
44.7k
Forks
3.6k
Avg merge
21m
Merged PRs (30d)
1

Description

  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate

Issue

I just upgraded to Hyper 3, fixed the configuration that it lost and then tried using it. Immediately I found that a python script I need for my work fails to run with an unknown encoding error:

Traceback (most recent call last):
  File "mach", line 86, in <module>
    main(sys.argv[1:])
  File "mach", line 82, in main
    sys.exit(mach.run(args))
  File "c:\mozilla\source\trunk\python/mach\mach\main.py", line 369, in run
    self._print_error_header(argv, sys.stdout)
  File "c:\mozilla\source\trunk\python/mach\mach\main.py", line 581, in _print_error_header
    fh.write('Error running mach:\n\n')
LookupError: unknown encoding: cp0

This is a python script running under an msys bash.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing Hyper 3.0.0 on Windows 10 1809 with the reported .hyper.js and an MSYS Bash session. Read mach and python/mach/mach/main.py around _print_error_header, especially line 581, then verify that the Python script runs without the unknown encoding: cp0 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, python, typescript
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.