Skip to content
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

Emoji input doesn't input anything #5617

Closed
mbartlett21 opened this issue Apr 28, 2020 · 2 comments
Closed

Emoji input doesn't input anything #5617

mbartlett21 opened this issue Apr 28, 2020 · 2 comments
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

Comments

@mbartlett21
Copy link

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.815]
Windows Terminal version (if applicable): 

Any other software?

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).

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Apr 28, 2020
@jdebp
Copy link

jdebp commented Apr 28, 2020

Or, rather, a C program whose fgets() devolves onto ReadFile() does not read characters greater than U+00007F … which is issue #4551 .

@mbartlett21
Copy link
Author

Ok. I'll close this then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants