bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] [PATCH] armscii8 bugfix


From: Gayane Sargssian
Subject: [bug-gnu-libiconv] [PATCH] armscii8 bugfix
Date: Wed, 7 Jul 2010 20:12:03 +0500
User-agent: Freenet.am WebMail

Hello friends!

I've found a bug in the armscii8 to unicode mapping, the և (ARMSCII-8
0xA8) must be mapped not as — (unicode 0x2014) but as և (unicode
0x0587).

I've checked  the /lib/armscii_8.h file and found more errors, here
follows a patch to fix the issues, thank you.


>From 5a43aeab59e453a48c41780bd37f368d8b19f66d Mon Sep 17 00:00:00 2001
From: coder <address@hidden>
Date: Wed, 7 Jul 2010 20:05:35 +0500
Subject: [PATCH] fix armscii-8 bugs

---
 lib/armscii_8.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/armscii_8.h b/lib/armscii_8.h
index 8d1613f..69e02fc 100644
--- a/lib/armscii_8.h
+++ b/lib/armscii_8.h
@@ -24,8 +24,8 @@

 static const unsigned short armscii_8_2uni[96] = {
   /* 0xa0 */
-  0x00a0, 0xfffd, 0x0587, 0x0589, 0x0029, 0x0028, 0x00bb, 0x00ab,
-  0x2014, 0x002e, 0x055d, 0x002c, 0x002d, 0x058a, 0x2026, 0x055c,
+  0x00a0, 0x00a9, 0x00a7, 0x0589, 0x0029, 0x0028, 0x00bb, 0x00ab,
+  0x0587, 0x002e, 0x055d, 0x002c, 0x002d, 0x058a, 0x2026, 0x055c,
   /* 0xb0 */
   0x055b, 0x055e, 0x0531, 0x0561, 0x0532, 0x0562, 0x0533, 0x0563,
   0x0534, 0x0564, 0x0535, 0x0565, 0x0536, 0x0566, 0x0537, 0x0567,
@@ -81,11 +81,11 @@ static const unsigned char armscii_8_page05[96] = {
   0xc1, 0xc3, 0xc5, 0xc7, 0xc9, 0xcb, 0xcd, 0xcf, /* 0x68-0x6f */
   0xd1, 0xd3, 0xd5, 0xd7, 0xd9, 0xdb, 0xdd, 0xdf, /* 0x70-0x77 */
   0xe1, 0xe3, 0xe5, 0xe7, 0xe9, 0xeb, 0xed, 0xef, /* 0x78-0x7f */
-  0xf1, 0xf3, 0xf5, 0xf7, 0xf9, 0xfb, 0xfd, 0xa2, /* 0x80-0x87 */
+  0xf1, 0xf3, 0xf5, 0xf7, 0xf9, 0xfb, 0xfd, 0xa8, /* 0x80-0x87 */
   0x00, 0xa3, 0xad, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x88-0x8f */
 };
 static const unsigned char armscii_8_page20[24] = {
-  0x00, 0x00, 0x00, 0x00, 0xa8, 0x00, 0x00, 0x00, /* 0x10-0x17 */
+  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10-0x17 */
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x18-0x1f */
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xae, 0x00, /* 0x20-0x27 */
 };
-- 
1.6.5.1.1367.gcd48




-----------------------------------------
This email was sent using Freenet.am WebMail.
Welcome to Armenian Freenet Community!
http://freenet.am/

Attachment: 0001-fix-armscii-8-bugs.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]