Unicode Hex Input produces �� instead of emoji on macOS #13730
Issue DescriptionI use macOS's Unicode Hex Input source to enter characters by typing their Unicode value while holding Option. Characters represented by a single UTF-16 value work correctly. For example, holding Option, typing Characters represented by two UTF-16 values do not work correctly. Holding Option, typing Keyboard: built-in MacBook Air keyboard Instructions for enabling Unicode Hex Input on MacOS: This appears to be a remaining surrogate-pair edge case from the broader Unicode Hex Input problem discussed in #5306. I have tested a proposed fix on my Mac: AI disclosure: I used the Pi coding agent to help investigate the behavior, develop and test the proposed fix, and edit this report. I reviewed the final text and code. Expected BehaviorHolding Option, typing D83EDDF5, and releasing Option should insert 🧵 once, matching the behavior of other macOS applications. Actual BehaviorGhostty inserts two Unicode replacement characters, Reproduction Steps
Feel free to tag me anytime if you would like me to test a fix on my machine. Ghostty LogsNo response Ghostty VersionOS Version InformationmacOS Tahoe 26.5.1 (Linux only) Display ServerNone (Linux only) Desktop Environment/Window ManagerNo response Minimal Ghostty Configurationmacos-option-as-alt = falseAdditional Relevant ConfigurationNo response I acknowledge that:
|
Replies: 3 comments 3 replies
|
I'm not on macOS so this is just a guess, but does |


#13733