utf8 error by importing mercurial repository
See original GitHub issueWhen importing repository in the os.mbed.com (Mercurial), I got following problem in my PC (Japanese Windows 7).
PS C:\Users\toyom> mbed --version
1.7.3
PS C:\Users\toyom> mbed import https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-blinky/
[mbed] Importing program "mbed-os-example-blinky" from "https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-blinky" at latest revision in the current branch
[mbed] ERROR: Unknown Error: 'utf8' codec can't decode byte 0x91 in position 0: invalid start byte
---
There is no problem importing GitHub repositiry.
PS C:\Users\toyom> mbed import https://github.com/ARMmbed/mbed-os-example-blinky
[mbed] Importing program "mbed-os-example-blinky" from "https://github.com/ARMmbed/mbed-os-example-blinky" at latest revision in the current branch
[mbed] Adding library "mbed-os" from "https://github.com/ARMmbed/mbed-os" at rev #03196b244ee0
PS C:\Users\toyom>
Also, mbed-cli v1.6.0 did not have this problem.
PS C:\Users\toyom> mbed --version
1.6.0
PS C:\Users\toyom> mbed import https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-blinky
[mbed] Importing program "mbed-os-example-blinky" from "https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-blinky" at latest revision in the current branch
[mbed] Adding library "mbed-os" from "https://github.com/ARMmbed/mbed-os" at rev #03196b244ee0
PS C:\Users\toyom>
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
bazaar - Bzr: Can't import Mercurial (Hg) Repository due to UTF-8 ...
This error occurs because there is data in the input stream that is not valid utf8; Mercurial usually stores only utf8 data, but...
Read more >UTF-8 error blocking import of Mercurial (hg) repository - Launchpad ...
I have a Mercurial repository with about 2100 commits. It exported successfully to the fast-import format (about 53 GB). However, when I try...
Read more >Mercurial: Repository path encoding of non UTF-8 characters
Running: ruby script/runner "Repository.fetch_changesets" -e production gives the following errors: /home/redmine/redmine-0.8.0/vendor/rails/railties/lib ...
Read more >⚓ T7339 Raise a setup warning when the "en_US.UTF-8 ...
Looking at the Mercurial repository on the server directly (using hg log), the umlauts are displayed properly. I have set LANG=en_GB.UTF-8 on my...
Read more >EncodingStrategy - Mercurial
byte string in local encoding (messages, user input); byte string in UTF-8 encoding (repository metadata). This page sorts out which type of ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@screamerbg @cmonr
Interestingly, after I put
-vv
option for the Mbed-CLI, I could import the repository successfully. I can now import any mercurial repos without any problem. This is strange.Imported log file is here: mbed_import.txt
[Python version]
[pip list]
[Mirrored to Jira]
@screamerbg We could resolve this issue by changing the return value from a decoded string into a raw bytes object. Then we would have to use bytes regex to process it. We could also use a replacing decoder, but this looks like it’s related to cloning, so that may not work as expected. [Mirrored to Jira]