Keysym: Fix conversion for Unicode and bare numbers
authorDaniel Stone <daniel@fooishbar.org>
Sat, 25 Apr 2009 04:42:42 +0000 (14:42 +1000)
committerDaniel Stone <daniel@fooishbar.org>
Tue, 22 Jun 2010 14:56:50 +0000 (15:56 +0100)
commitcdc735c8ca9ebc270429074cdf0205407d4b5d29
treedfec0c6fd3c0ace6b208864090108e41f1d6fc70
parent8e3239a78f7e47321535a4917bddf4ce00d3d244
Keysym: Fix conversion for Unicode and bare numbers

Ensure that Unicode string representations are accepted and turned into
numbers, as well as hexadecimal numbers in 0xabcd1234 form; unknown
keysyms are output as 0xabcd1234 in string form.

This also ensures that strings are never returned malloc()ed.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/keysym.c