Skip to content

Correct stdout_write_bytes for UTF-8 chars.#106

Open
codemee wants to merge 1 commit into
scientifichackers:masterfrom
codemee:master
Open

Correct stdout_write_bytes for UTF-8 chars.#106
codemee wants to merge 1 commit into
scientifichackers:masterfrom
codemee:master

Conversation

@codemee
Copy link
Copy Markdown

@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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant