[gucharmap] unicode: Correct Tangut component character names



commit c244483f060af40ef10086321683fc9e0c0b6952
Author: Christian Persch <chpe gnome org>
Date:   Thu Mar 3 22:22:20 2016 +0100

    unicode: Correct Tangut component character names
    
    They start at 1, not 0.

 gucharmap/gucharmap-unicode-info.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gucharmap/gucharmap-unicode-info.c b/gucharmap/gucharmap-unicode-info.c
index 6da0b31..8e59071 100644
--- a/gucharmap/gucharmap-unicode-info.c
+++ b/gucharmap/gucharmap-unicode-info.c
@@ -88,7 +88,7 @@ gucharmap_get_unicode_name (gunichar wc)
       return buf;
   }
   else if (wc >= 0x18800 && wc <= 0x18af2) {
-      g_snprintf (buf, sizeof (buf), "TANGUT COMPONENT-%u", wc - 0x18800);
+      g_snprintf (buf, sizeof (buf), "TANGUT COMPONENT-%u", wc - 0x18800 + 1);
       return buf;
   }
 #endif


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