malxau / yori

Yori is a CMD replacement shell that supports backquotes, job control, and improves tab completion, file matching, aliases, command history, and more.
http://www.malsmith.net/yori/
MIT License
1.24k stars 31 forks source link

Unicode #7

Closed ghost closed 5 years ago

ghost commented 5 years ago

If you type Alt + 1 with cmd.exe you get:

U+263A WHITE SMILING FACE

https://codepoints.net/U+263A

However with yori.exe you get gibberish

malxau commented 5 years ago

Thanks for the report. Alt+n (without a leading zero) is supposed to translate the ASCII character. I was using MultiByteToWideChar for this which looks like it's only going to translate the upper 128 chars, which kind of makes sense. I added a hacky translation table to do the low 32 chars in commit a66f4bf27073c4ad314c087bb286d3e8a75c6ff9 which I think should fix this.

malxau commented 5 years ago

I just released 1.11 which should hopefully fully fix this. 1.10 fixed this but broke characters above 128 by using signed comparison (sigh.) 1.11 should work for both. Please let me know if there are any issues.