So I do Questions and Answers
I found a solution to my problem, but no explanation:
In the little program I joigned, I had to replace the line:
if (XSetLocaleModifiers("") == NULL) {
by
if (XSetLocaleModifiers("@im=none") == NULL) {
Output of prog-1 is now correct, and since I modified the a
Additional informations:
Even XNInputStyle is not set: if I do:
ic=XCreateIC(im,XNInputStyle,XIMPreeditNothing|XIMStatusNothing,NULL);
long int st;
XGetICValues(ic,XNInputStyle,&st,NULL);
printf ("XIMPreeditNothing|XIMStatusNothing = %ld - style ic =
%ld\n",XIMPreeditNothing|XIMStatusNothing,st