From 640eeabfe113695a22bf60ba327210a5526b187d Mon Sep 17 00:00:00 2001 From: Marcoen Hirschberg Date: Tue, 10 Jan 2006 17:12:33 +0000 Subject: 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 --- tools/codepages.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/codepages.c') 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; -- cgit v1.1