diff options
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 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 | ||