-
Notifications
You must be signed in to change notification settings - Fork 145
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for UTF-8 encoding #21
Comments
That is a very good question. I'll look into it, but most Unix commands expect a C-string as input. There might not be a way to keep UTF8 characters through the entire pipeline. At some point, the arguments have to be |
|
Sorry, strike my previous answer. We need to track the result of this |
Take a look at If you take a UTF-8 C string |
All that should be necessary to fix this (I've verified locally) is to change all occurrences of However, if we want to support other encodings than UTF-8 in the future, more work would be needed. |
Looks like |
Investigating Removing that |
According to the doc, it should reply true if the character is printable, according to the defined locale: http://en.cppreference.com/w/c/string/wide/iswprint |
Do we need to define |
Defining |
What does |
It says "C", which explains the behaviour of Update: found a similar question on stackoverflow: https://stackoverflow.com/questions/32594377/setlocale-works-in-ios-simulator-but-fails-on-device
|
Fixed with 6c22c28. I guess I can close this issue now? |
OpenTerm passes UTF-8 commands to ios_system, and expects UTF-8 output from commands. However, argument parsing & command parsing converts the string to ASCII, which causes data loss.
Try:
echo 馃榾
in OpenTerm to see results.The text was updated successfully, but these errors were encountered: