linux: Fix some panics related to xkb compose (#13529)

Release Notes:

- N/A

Fixed #13463 Fixed crash when the locale was non UTF-8 and fixed the
fallback locale.
Fixed #13010 Fixed crash when `compose.keysym()` was `XKB_KEY_NoSymbol`

I also extracted the `xkb_compose_state` to a single place
5d766f61faFernando Tagawa committed on 6/26/2024, 3:34:39 PM· committed by GitHubparent18b4573
3 files changedLine totals unavailable