Rahix / avr-hal

embedded-hal abstractions for AVR microcontrollers
Apache License 2.0
1.23k stars 216 forks source link

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

Closed Rahix closed 3 months ago

Rahix commented 3 months ago

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