We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2064

Summary: TextInput API doesn't work with IBus (even with XIM support)
Product: SDL Reporter: Philip Rushik <prushik>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: alex, prushik
Version: HG 2.1   
Hardware: All   
OS: Linux   

Description Philip Rushik 2013-08-25 09:59:22 UTC
SDL2 does not work with IBus (tested Ibus 1.4.1) even with XIM support enabled in IBus with the --xim flag on runtime. After explicitly calling TextInputStart() in SDL, the IBus hotkeys do not result in a IM engine change and if the IM is set to something other than English before the program is started, only English characters are received. There is no way to receive any input from any non-English IM using Ibus.

Versions Tested:
SDL2 - hg 678f71df2c6b+ tip  (is that the rev number? it looks ugly)
IBus - 1.4.1

Steps to reproduce:
Install IBus version 1.4.1
Install a non-English IM such as ibus-hangul
Run any SDL2 program using the TextInput events subsystem
Press the hotkey to change IMs
  Observe results (no change)
Attempt to enter non-English characters (such as 한글단어)
  Observe results (English characters are received)
Exit SDL2 application and open a text editor
Press the IBus hotkey to change IMs
Reopen SDL2 application
Attempt to enter non-English characters (such as 한글단어)
  Observe results (English characters are received)

This aught to get fixed soon since the TextInput API is often cited as one of the great new features of SDL2, and if it doesn't work on Linux, its kind of false advertisement. IMHO
Comment 1 Sam Lantinga 2013-09-07 06:43:17 UTC
Do you have a working patch?  I haven't used ibus or any IMs on Linux myself.
Comment 2 Alex Baines 2014-08-05 15:46:14 UTC
I realise this bug is rather old, but this should be fixed now in HG with the newly added IBus code.