sh
sh copied to clipboard
gosh: Windows Unicode
Using a three byte character:
∞ (U+221E) (Alt + 236)
I can paste or enter with no problem:
PS D:\Desktop\sh-master\cmd\gosh> .\gosh.exe
$ ∞
"∞": executable file not found in $PATH
$ ∞
"∞": executable file not found in $PATH
$ ∞
"∞": executable file not found in $PATH
but four byte character:
😀 (U+1F600)
Fails:
$ ��
"😀": executable file not found in $PATH
I'm not sure how this could be a bug in our code - our prompt is really just printing $ and then reading input bytes until a newline. Do we need to do anything special to properly support all of Unicode on windows?
I know that Windows uses UTF-16 in some places, so that could be it. I found another Go shell that works, if it helps:
https://github.com/lmorg/murex
I'm going to label this "help wanted" because I'm still not sure what needs to be done.