A mistake in keysymdef.h with upsilon symbol?

Alan Coopersmith alan.coopersmith at oracle.com
Tue Sep 1 19:13:32 PDT 2015


On 09/ 1/15 06:38 PM, Mats Blakstad wrote:
> As example, I want to add 0x025B. It says that I should take "the character's
> Unicode number plus 0x01000000". What does that mean?

0x01000000
+   0x025B
----------
0x0100025B

> How can I use the functions XStringToKeysym() and XKeysymToString().
> Can I run them in the terminal in some way?

Call them from a C program.   For instance:

% cat > strtokey.c
#include <stdio.h>
#include <X11/Xlib.h>

int main(int argc, char **argv) {
     printf("0x%x\n", XStringToKeysym(argv[1]));
}

% cc -o strtokey strtokey.c -lX11
% ./strtokey U025B
0x100025b

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list