diff options
Diffstat (limited to 'firmware/common')
-rw-r--r-- | firmware/common/unicode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/unicode.c b/firmware/common/unicode.c index 4e1b78f9e1..e2e2dc2f3a 100644 --- a/firmware/common/unicode.c +++ b/firmware/common/unicode.c | |||
@@ -92,7 +92,7 @@ unsigned char* utf8encode(unsigned long ucs, unsigned char *utf8) | |||
92 | int tail = 0; | 92 | int tail = 0; |
93 | 93 | ||
94 | if (ucs > 0x7F) | 94 | if (ucs > 0x7F) |
95 | while (ucs >> (6*tail + 2)) | 95 | while (ucs >> (5*tail + 6)) |
96 | tail++; | 96 | tail++; |
97 | 97 | ||
98 | *utf8++ = (ucs >> (6*tail)) | utf8comp[tail]; | 98 | *utf8++ = (ucs >> (6*tail)) | utf8comp[tail]; |