mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-24 18:07:01 +00:00
...
This commit is contained in:
parent
21bba05805
commit
d9d6bd7ffb
1 changed files with 1 additions and 1 deletions
2
kitty/charsets.c
generated
2
kitty/charsets.c
generated
|
|
@ -64,7 +64,7 @@ decode_utf8_string(const char *src, size_t sz, uint32_t *dest) {
|
|||
|
||||
unsigned int
|
||||
encode_utf8(uint32_t ch, char* dest) {
|
||||
if (ch < 0x80) { // only lower 7 bits cab be 1
|
||||
if (ch < 0x80) { // only lower 7 bits can be 1
|
||||
dest[0] = (char)ch; // 0xxxxxxx
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue