Skip to content

Commit 2158102

Browse files
laynorardera
authored andcommitted
replace fprintf with DEBUG_ASSERT_MSG.
1 parent c61c10d commit 2158102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/text_input.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static inline uint8_t utf8_symbol_length(uint8_t c) {
4343
}
4444
if ((c & 0b10000000) == 0b10000000) {
4545
// XXX should we return 1 and don't care here?
46-
fprintf(stderr, "weird char start: %x\n", c);
46+
DEBUG_ASSERT_MSG(false, "Invalid UTF-8 character");
4747
return 0;
4848
}
4949
return 1;

0 commit comments

Comments
 (0)