SDL2.0 XIM related bug report

SDL version: SDL-2.0.0-6940
OS: OpenSUSE 12.2

I encountered crash issue when initializing SDL if the $LANG is set to zh_CN.UTF-8 or something alike.

The reason is the call of XOpenIM() in src/video/x11/SDL_x11video.c:505 is not necessaryly successful if xim engine is not setup properly for zh_CN locale. The direct consequence is process crashes on XCreateIC() in src/video/x11/SDL_x11window.c:225.

Fixed, thanks!On Fri, Mar 15, 2013 at 3:23 AM, lonelyflyer wrote:

**
SDL version: SDL-2.0.0-6940
OS: OpenSUSE 12.2

I encountered crash issue when initializing SDL if the $LANG is set to
zh_CN.UTF-8 or something alike.

The reason is the call of XOpenIM() in src/video/x11/SDL_x11video.c:505 is
not necessaryly successful if xim engine is not setup properly for zh_CN
locale. The direct consequence is process crashes on XCreateIC() in
src/video/x11/SDL_x11window.c:225.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org