test: don't print control characters in interactive tests

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2014-02-07 01:35:56 +02:00
parent 779eec3b8b
commit 623602cb78
1 changed files with 1 additions and 1 deletions

View File

@ -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