rules: fix parsing of multiple options
authorRan Benita <ran234@gmail.com>
Wed, 11 Jul 2012 11:08:28 +0000 (14:08 +0300)
committerDaniel Stone <daniel@fooishbar.org>
Thu, 12 Jul 2012 08:42:08 +0000 (09:42 +0100)
commit19f814f95e30675606dc5ac7c72e1f9434b3020c
tree63886fc8c6c1456b8cc07bd85f6344b068dd45b1
parent8ff984871ba00434277b3c1a55ea240ef1157509
rules: fix parsing of multiple options

This was broken by commit 18d331b86b4942ba54fe087ca07e47c9383d768b
(where only the first option out of a comma-separated string was
matched). Do it correctly this time and add a test.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/rules.c
test/data/rules/multiple-options [new file with mode: 0644]
test/rules-file.c