* Source/x11/XIMInputServer.m: Add the setlocale(LC_CTYPE, "") call

back that I removed last year (r35152).

I tested the fcitx input method, and without the setlocale call,
XOpenIM would fail. I'm not sure what the best plan is in the long
term, I wanted to avoid calling setlocale from the core frameworks
but in this case xlib seems to require it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@37002 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2013-08-21 22:30:15 +00:00
parent 33979910bd
commit 3ec966768f
2 changed files with 20 additions and 0 deletions

View file

@ -1,3 +1,13 @@
2013-08-21 Eric Wasylishen <ewasylishen@gmail.com>
* Source/x11/XIMInputServer.m: Add the setlocale(LC_CTYPE, "") call
back that I removed last year (r35152).
I tested the fcitx input method, and without the setlocale call,
XOpenIM would fail. I'm not sure what the best plan is in the long
term, I wanted to avoid calling setlocale from the core frameworks
but in this case xlib seems to require it.
2013-08-02 Ivan Vucica <ivan@vucica.net>
* Source/opal/OpalContext.m:

View file

@ -68,9 +68,19 @@
display: (Display *)dpy
name: (NSString *)name
{
char *locale;
delegate = aDelegate;
ASSIGN(server_name, name);
locale = setlocale(LC_CTYPE, "");
if (XSupportsLocale() != True)
{
NSLog(@"Xlib does not support locale setting %s", locale);
/* FIXME: Should we reset the locale or just hope that X
can deal with it? */
}
#ifdef USE_XIM
if ([self ximInit: dpy] == NO)
{