Dead key with SDL 2

Hi,

I’m using SDL 2 for a game I develop and at some point I got this:
The key you just pressed is not recognized by SDL. To help get this
fixed, please report this to the SDL mailing list X11
KeyCode 0 (-8), X11 KeySym 0x0 ((null)).

I’m using a French keyboard and when I press the dead key ^ nothing
happens (no event). Then if I press any other key after this one (even
^), the above message gets printed and I still get no key press event.

Here is the output from xev when I press the key:
KeyPress event, serial 28, synthetic NO, window 0x2200001,
root 0x250, subw 0x0, time 25531971, (421,536), root:(422,552),
state 0x0, keycode 0 (keysym 0x5e, asciicircum), same_screen YES,
XKeysymToKeycode returns keycode: 15
XLookupString gives 0 bytes:
XmbLookupString gives 1 bytes: (5e) "^"
XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x2200001,
root 0x250, subw 0x0, time 25532043, (421,536), root:(422,552),
state 0x0, keycode 29 (keysym 0xfe52, dead_circumflex), same_screen
YES,
XLookupString gives 1 bytes: (5e) "^"
XFilterEvent returns: False

Cheers,
Philippe