Emoji input doesn't input anything #5617
Labels
Needs-Tag-Fix
Doesn't match tag requirements
Needs-Triage
It's a new issue that the core contributor team needs to triage at the next triage meeting
Environment
This is using Lua, edited to execute
chcp 65001 > nul
before reading any input.Steps to reproduce
When entering a line into Lua, enter a unicode emoji.
Expected behavior
The emoji would be read as four utf-8 bytes:
\xf0\x9f\x99\x82
Actual behavior
The line is only read up to the emoji (not including it).
Notes
When I tried this in
cmd
(also through MS Terminal), it entered correctly, resulting in'😀' is not recognized as an internal or external command, operable program or batch file.
Lua uses
fgets
to read a line.I tested
_getch
as another method and it had the same problem (It refused to read anything unless it was ASCII and not an emoji).The text was updated successfully, but these errors were encountered: