diff options
| author | Marcoen Hirschberg <marcoen@gmail.com> | 2006-01-10 17:12:33 +0000 |
|---|---|---|
| committer | Marcoen Hirschberg <marcoen@gmail.com> | 2006-01-10 17:12:33 +0000 |
| commit | 640eeabfe113695a22bf60ba327210a5526b187d (patch) | |
| tree | f716bb94fb0fac687e0370240f3007aa31ce30ca /tools/codepages.c | |
| parent | 28aaa0ade52bafabaf102b285a742caf5b15b765 (diff) | |
| download | rockbox-640eeabfe113695a22bf60ba327210a5526b187d.zip rockbox-640eeabfe113695a22bf60ba327210a5526b187d.tar.gz rockbox-640eeabfe113695a22bf60ba327210a5526b187d.tar.bz2 rockbox-640eeabfe113695a22bf60ba327210a5526b187d.tar.xz | |
change the arabic codepage from ISO-8859-6 to CP1256
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8323 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/codepages.c')
| -rw-r--r-- | tools/codepages.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/codepages.c b/tools/codepages.c index af181a7..023a741 100644 --- a/tools/codepages.c +++ b/tools/codepages.c @@ -84,13 +84,13 @@ unsigned short iso_decode(unsigned char *latin1, int cp, int count) } break; - case 0x05: /* Arabic (ISO-8859-6) */ + case 0x05: /* Arabic (CP1256) */ while (count--) { /* first convert to unicode */ - if (*latin1 < 0xAC || *latin1 == 0xAD) + if (*latin1 < 0x80) ucs = *latin1++; - else - ucs = *latin1++ + 0x0560; + else + ucs = cp1256_to_uni[*latin1++ - 0x80]; } break; |