-
-
Notifications
You must be signed in to change notification settings - Fork 404
"new release" message contains a non-ASCII character #1480
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
Comments
Am not sure we want to limit the Arduino CLI to use only ASCII, UTF has been around for some time. In any case if you don't want to see the new release notification you can disable it by setting the |
Up to you of course, but an essentially unnecessary non-ASCII character appearing in the middle of a string from a command-line application is quite likely to cause people unexpected issues. |
I wouldn't expect any modern terminal or language to have issues with UTF though, neither I would expect people try to parse the text format output of the CLI, that's meant for humans. If you want to parse the output of the CLI I strongly suggest using |
Not parsing it, just calling it via Python |
Apologies for being a but clueless here but I've tried setting that configuration value as follows:
...but I get back "Settings key doesn't exist". I must have the syntax wrong: can you help me with that please? |
My bad! It's
I wouldn't expect it to fail anyway, all our integration tests are written in Python and call the Arduino CLI directly like that. 🤔 |
Thanks! I'll close this now as it's obviously not a problem for others. |
Just to be clear, in the above I didn't mean "don't do UTF", I meant "don't send non-ASCII codeable characters inside UTF if you don't need to", IYSWIM. Anyway, happy now with the notification disabled. |
For anyone else who hits this issue, it is to do with Windows 10, or maybe any OS, not having a code-page entry for this particular UTF-8 character in its default code-page table. Obviously the machines that the
The reason for the double decode is that we wanted to get the whole line but with the undecodable character replaced with a "?" however, contrary to most of the posts I have seen on the internet, |
Bug Report
If
arduino-cli
detects that a new version is available it says so, which is great, but the message includes a non-ASCII character (a little right-arrow) and so, wherearduino-cli
is called from a Python [3.8.5] script, it will barf on it, which is non-optimal, i.e. all our automation suddenly stops working when a new version ofarduino-cli
is available!It would be better to remove this character.
FYI, I've tried adding
--no-colour
but that only removes the escape sequences from either side, not the non-ASCII character.Current behavior
You can see the non-ASCII character towards the right-hand end of the third line.
Expected behavior
Be ASCII please.
Environment
The text was updated successfully, but these errors were encountered: