xkbcomp fails on geometry files with negative floating point values
Submitted by Martin
Assigned to Xorg Project Team
Description
Created attachment 57236 Sample file to demontrate problem
xkbcomp has problems with shapes, that contain negative floating point values.
To reproduce: See attachment file.
- $ xkbcomp sample.xkb sample2.xkm
- $ xkbcomp sample2.xkb sample3.xkb
$ xkbcomp sample3.xkb syntax error: line 10 of sample3.xkb last scanned symbol is: corner Errors encountered in sample3.xkb; not compiled.
Compare original file (sample.xkb) with sample3.xkb. While positive floating points and negative integers pose no problem, negative floating point values become something like -3.-4 which makes no sense and gets a syntax error.
Attachment 57236, "Sample file to demontrate problem":
sample.xkb