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 - TextInput: encoding problem when using dead keys on X11
Summary: TextInput: encoding problem when using dead keys on X11
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.3
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-08 11:20 UTC by Emanuel Guével
Modified: 2017-08-14 13:02 UTC (History)
0 users

See Also:


Attachments
Minimal program to show text inputs on standard output (686 bytes, text/x-csrc)
2014-06-08 11:20 UTC, Emanuel Guével
Details

Note You need to log in before you can comment on or make changes to this bug.
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!