forked from len0rd/rockbox
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
This commit is contained in:
parent
28aaa0ade5
commit
640eeabfe1
7 changed files with 30 additions and 10 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue