summaryrefslogtreecommitdiff
path: root/tools/codepages.c
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2006-01-10 17:12:33 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2006-01-10 17:12:33 +0000
commit640eeabfe113695a22bf60ba327210a5526b187d (patch)
treef716bb94fb0fac687e0370240f3007aa31ce30ca /tools/codepages.c
parent28aaa0ade52bafabaf102b285a742caf5b15b765 (diff)
downloadrockbox-640eeabfe113695a22bf60ba327210a5526b187d.tar.gz
rockbox-640eeabfe113695a22bf60ba327210a5526b187d.zip
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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/codepages.c b/tools/codepages.c
index af181a7b7d..023a741e30 100644
--- a/tools/codepages.c
+++ b/tools/codepages.c
@@ -84,13 +84,13 @@ unsigned short iso_decode(unsigned char *latin1, int cp, int count)
84 } 84 }
85 break; 85 break;
86 86
87 case 0x05: /* Arabic (ISO-8859-6) */ 87 case 0x05: /* Arabic (CP1256) */
88 while (count--) { 88 while (count--) {
89 /* first convert to unicode */ 89 /* first convert to unicode */
90 if (*latin1 < 0xAC || *latin1 == 0xAD) 90 if (*latin1 < 0x80)
91 ucs = *latin1++; 91 ucs = *latin1++;
92 else 92 else
93 ucs = *latin1++ + 0x0560; 93 ucs = cp1256_to_uni[*latin1++ - 0x80];
94 } 94 }
95 break; 95 break;
96 96