Repository navigation
[FEATURE REQUEST] Improve Chinese IME compatibility on Linux X11 - #15
Merged
Raiden-MeixElysia merged 2 commits intoOct 24, 2026
Merged
Raiden-MeixElysia merged 2 commits into
Raiden-MeixElysia merged 2 commits into
Conversation
5 of 7 tasks
Contributor
|
Thank you, @yaoyao368345. You found the crash and its cause: zed-xim calls What changed after the merge:
The decoder matched libX11's and fcitx5's own reverse conversions over 2,143,690 strings. Under Xorg in Docker, with IBus libpinyin, ELYTerminal now draws each preedit and commits 中文, 你好嗎 and 足夠. It ships in the next release. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type
What and why
On ELYTerminal v0.1.8 under Linux X11, committing Chinese input can terminate the application with
Encoding Error: UnsupportedEncoding, while pasting Chinese text works. This improves XIM compatibility without changing application sources or the pinned GPUI version.Cause and fix
GPUI uses zed-xim 0.4.0-zed, whose published xim-ctext 0.3.0 decoder rejects GB2312 COMPOUND_TEXT. zed-xim calls
expect("Encoding Error")on the decoder result. A GB2312 fixture reproduces the panic; this does not claim to capture the user's actual XIM packet.vendor/xim-ctext/README.md.How it was tested
Fork validation for this head: Linux IME run 39742838948 completed successfully (Ubuntu 22.04 container, regular user). This is fork CI; upstream PR-triggered checks are reported separately.
Checklist