Re: Keyboard problem
On 11.05.2012 13:56, Germán A. Arias wrote: Each time I launch a gnustep app, I get this message: Unable to initialize XIM, using standard keyboard events So, If I type something like á on Ink, I get A'a. Is this something wrong on my configuration? or is a bug on gnustep? Attached test log for base, where I have 5 test fail. Most likely XIM is completely uninvolved here. Do you have a á key on your keyboard and this works correctly with other X applications? The first thing you could try is to deactivate XIM in the backend by specifying --disable-xim to configure. If things work after that, than it was the XIM code in GNUstep after all. If the keys are still not recognized, you will have to debug process_key_event() in XGServerEvent.m. You can get a bit more verbose output from GNUstep by setting --GNU-Debug=NSKeyEvent on the command line of Ink. (BTW: Thank you for using Ink!) Hope this helps Fred ___ Gnustep-dev mailing list Gnustep-dev@gnu.org https://lists.gnu.org/mailman/listinfo/gnustep-dev
Re: Keyboard problem
El Fri, 11 May 2012 16:59:42 +0200 Fred Kiefer fredkie...@gmx.de escribió: On 11.05.2012 13:56, Germán A. Arias wrote: Each time I launch a gnustep app, I get this message: Unable to initialize XIM, using standard keyboard events So, If I type something like á on Ink, I get A'a. Is this something wrong on my configuration? or is a bug on gnustep? Attached test log for base, where I have 5 test fail. Most likely XIM is completely uninvolved here. Do you have a á key on your keyboard and this works correctly with other X applications? This is the accent key and then the a, and works in all other apps (except gnustep apps). The first thing you could try is to deactivate XIM in the backend by specifying --disable-xim to configure. If things work after that, than it was the XIM code in GNUstep after all. Done, but the problem persist. If the keys are still not recognized, you will have to debug process_key_event() in XGServerEvent.m. You can get a bit more verbose output from GNUstep by setting --GNU-Debug=NSKeyEvent on the command line of Ink. (BTW: Thank you for using Ink!) The output is: 2012-05-11 18:24:02.586 Ink[12476] keysym=65105, keyCode=34 flags=0 (state=16) 2012-05-11 18:24:02.702 Ink[12476] keysym=65105, keyCode=34 flags=0 (state=16) 2012-05-11 18:24:03.623 Ink[12476] keysym=97, keyCode=38 flags=0 (state=16) 2012-05-11 18:24:03.816 Ink[12476] keysym=97, keyCode=38 flags=0 (state=16) I will try debug process_key_event() later. Thanks. Hope this helps Fred ___ Gnustep-dev mailing list Gnustep-dev@gnu.org https://lists.gnu.org/mailman/listinfo/gnustep-dev
Re: Keyboard problem
Hey German, I investigated a similar problem a while ago. My test case was setting the keyboard layout in gnome on Ubuntu 12.04 to French, using the Ubuntu gui for changing keyboard layouts. This was on a physically US English keyboard, and I was getting similar output in Ink when pressing a key that should have produced an accented e or a. I traced the problem to Source/x11/XIMInputServer.m, in particular, it does some things with setting the C locale which didn't make sense to me based on reading the documentation of the relevant XIM functions. In my case, the existing XIMInputServer code was not calling Xutf8LookupString when it should have. Here is a patch that cleans up XIMInputServer a bit. Assuming this fixes it for you - before the patch can be committed there also needs to be a configure check for the Xutf8LookupString function (HAVE_XUTF8LOOKUPSTRING) added - IIRC it is a relatively recent addition to Xorg. Cheers, Eric On Fri, May 11, 2012 at 5:56 AM, Germán A. Arias ger...@xelalug.org wrote: Each time I launch a gnustep app, I get this message: Unable to initialize XIM, using standard keyboard events So, If I type something like á on Ink, I get A'a. Is this something wrong on my configuration? or is a bug on gnustep? Attached test log for base, where I have 5 test fail. ___ Gnustep-dev mailing list Gnustep-dev@gnu.org https://lists.gnu.org/mailman/listinfo/gnustep-dev back-input-fix.diff Description: Binary data ___ Gnustep-dev mailing list Gnustep-dev@gnu.org https://lists.gnu.org/mailman/listinfo/gnustep-dev