Skip to content

Commit

Permalink
Fix rendering special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
rickgaiser committed Dec 29, 2020
1 parent a3428d7 commit 9fc223c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/utf8.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ static const uint8_t utf8d[] = {
1, 3, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, // s7..s8
};

uint32_t static utf8Decode(uint32_t *state, uint32_t *codep, uint32_t byte)
uint32_t static utf8Decode(uint32_t *state, uint32_t *codep, char c)
{
uint8_t byte = (uint8_t)c;
uint32_t type = utf8d[byte];

*codep = (*state != UTF8_ACCEPT) ?
Expand Down

0 comments on commit 9fc223c

Please sign in to comment.