[Bug 869133] Dead keys produce incorrect results in non-Qt applications