Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Correct stdout_write_bytes for UTF-8 chars. #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

codemee
Copy link

@codemee codemee commented Jul 8, 2021

On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
modified: ampy/pyboard.py

The original implementation of stdout_write_bytes() is writing the output byte by byte. This would break the multi-bytes UTF-8 char into mutiple single byte chars and cause problems with non ascii chars.

I modify the implementation to output char by char according to the UTF-8 encoding.

On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
	modified:   ampy/pyboard.py

The original implementation of stdout_write_bytes() is writing the output byte by byte. This would break the multi-bytes UTF-8 char into mutiple single byte chars and cause problems with non ascii chars.

I modify the implementation to output char by char according to the UTF-8 encoding.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant