diff options
| author | Marcoen Hirschberg <marcoen@gmail.com> | 2005-12-07 08:37:14 +0000 |
|---|---|---|
| committer | Marcoen Hirschberg <marcoen@gmail.com> | 2005-12-07 08:37:14 +0000 |
| commit | 46b726eaab751669726895f6f5fa30095b062e80 (patch) | |
| tree | 7c38335f79ef97f89b0f7a852a2959453b301bbd /firmware/common | |
| parent | 1184ae9de74c24a2c4d2704bc2f68ec2972602f3 (diff) | |
| download | rockbox-46b726eaab751669726895f6f5fa30095b062e80.zip rockbox-46b726eaab751669726895f6f5fa30095b062e80.tar.gz rockbox-46b726eaab751669726895f6f5fa30095b062e80.tar.bz2 rockbox-46b726eaab751669726895f6f5fa30095b062e80.tar.xz | |
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
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 4e1b78f..e2e2dc2 100644 --- a/firmware/common/unicode.c +++ b/firmware/common/unicode.c @@ -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]; |