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 2577

Summary: TextInput: encoding problem when using dead keys on X11
Product: SDL Reporter: Emanuel Guével <guevel.emanuel>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.3   
Hardware: x86_64   
OS: Linux   
Attachments: Minimal program to show text inputs on standard output

Description Emanuel Guével 2014-06-08 11:20:29 UTC
Created attachment 1675 [details]
Minimal program to show text inputs on standard output

TextInput event text is incorrect when using dead keys.

When I press the key 'é', 'é' is inserted, which is correct.
When I press the keys '´' (dead acute), then 'e', 'é' is inserted instead of 'é'.

The letter built with a dead key is mis-encoded. I have the same result applying a WINDOWS-1252 to UTF-8 charset conversion to an UTF-8 string:
> $ echo é | iconv -f WINDOWS-1252 -t UTF-8 
> é

I join the program I used to reproduce the bug.
If that helps, I am using Arch Linux.
Comment 1 Sam Lantinga 2017-08-14 13:02:29 UTC
This should be fixed in the latest SDL snapshot:
http://www.libsdl.org/tmp/SDL-2.0.zip

Please reopen this bug if that's not the case.

Thanks!