Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

ravedude: Don't emit non-ascii bytes on Windows #516

Merged
merged 1 commit into from
Mar 7, 2024
Merged

Conversation

Rahix
Copy link
Owner

@Rahix Rahix commented Mar 7, 2024

Windows console stdio does not support sending UTF-8 sequences which means that we must ensure that any data received from the serial connection is cleaned to ASCII only before forwarding it to the console.

To make sure that users notice the illegal data getting sent, print ? symbols instead.

Fixes #515.

@BiasedKiwi, please give this branch a try using

cargo install --git https://github.com/rahix/avr-hal --rev 3fddc711ad504c4dff4a18952834b8ad13d50446 ravedude

Windows console stdio does not support sending UTF-8 sequences which
means that we must ensure that any data received from the serial
connection is cleaned to ASCII only before forwarding it to the console.

To make sure that users notice the illegal data getting sent, print `?`
symbols instead.
@Rahix Rahix added ravedude windows Related to usage on Windows host systems. labels Mar 7, 2024
@Rahix Rahix merged commit c01dbf2 into main Mar 7, 2024
23 checks passed
@Rahix Rahix deleted the windows-utf8 branch March 7, 2024 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ravedude windows Related to usage on Windows host systems.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic while trying to write to serial using ufmt::uwriteln
1 participant