forked from len0rd/rockbox
several small fixes sugested by different people (FireFly, Lear, Takka)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8184 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1184ae9de7
commit
46b726eaab
4 changed files with 5 additions and 12 deletions
|
@ -92,7 +92,7 @@ unsigned char* utf8encode(unsigned long ucs, unsigned char *utf8)
|
|||
int tail = 0;
|
||||
|
||||
if (ucs > 0x7F)
|
||||
while (ucs >> (6*tail + 2))
|
||||
while (ucs >> (5*tail + 6))
|
||||
tail++;
|
||||
|
||||
*utf8++ = (ucs >> (6*tail)) | utf8comp[tail];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue