Repository navigation
macOS: support decoding the surrogate pair with UnicodeHexInput - #13737
Conversation
|
Yeah this is super weird. Ghostty understands raw UTF-8, can these not be UTF-8 encoded and let Ghostty decode the bytes? |
I tried this as well, decoding surrogates correctly and send them to the surface, but no🤔. Might give Claude a go today. |
So I checked(with Claude), our UTF-8 handling in the lib doesn't cover this, given the fact that AppKit deliver them separately. Since a lone surrogate can't be represented in standard UTF8, we still need some extra handling in either apprt or lib to join them. For now I think only change swift makes sense. If in the future we support windows upstream and run into the same issue there, we can move it to the lib then.
|
Not yet a perfect fix for #13733