projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
779eec3
)
test: don't print control characters in interactive tests
author
Ran Benita
<ran234@gmail.com>
Thu, 6 Feb 2014 23:35:56 +0000
(
01:35
+0200)
committer
Ran Benita
<ran234@gmail.com>
Thu, 6 Feb 2014 23:35:56 +0000
(
01:35
+0200)
Signed-off-by: Ran Benita <ran234@gmail.com>
test/common.c
patch
|
blob
|
history
diff --git
a/test/common.c
b/test/common.c
index
5fe6ece
..
fd013ca
100644
(file)
--- a/
test/common.c
+++ b/
test/common.c
@@
-379,7
+379,7
@@
test_print_keycode_state(struct xkb_state *state, xkb_keycode_t keycode)
printf("unicode [ ");
for (int i = 0; i < nsyms; i++) {
uint32_t unicode = xkb_keysym_to_utf32(syms[i]);
- printf("%lc ", (int)
(unicode
? unicode : L' '));
+ printf("%lc ", (int)
(unicode > 32
? unicode : L' '));
}
printf("] ");
#endif