Hi,
This is a new version after talk with Tasn on irc.
Thanks.
--
------------------------
Raoul Hecky
Calaos
Index: src/lib/canvas/evas_object_textblock.c
===================================================================
--- src/lib/canvas/evas_object_textblock.c (révision 59738)
+++ src/lib/canvas/evas_object_textblock.c (copie de travail)
@@ -4548,6 +4548,10 @@
_escaped_char_get(const char *s, const char *s_end)
{
const char *map_itr, *map_end;
+ char ustr[10];
+ Eina_Unicode uchar[2] = { 0, 0 };
+ static char utf8_escape[4];
+ char *utf8_char;
map_itr = escape_strings;
map_end = map_itr + sizeof(escape_strings);
@@ -4559,6 +4563,32 @@
if (map_itr < map_end)
_escaped_advance_after_end_of_string(&map_itr);
}
+
+ if (s[1] == '#')
+ {
+ memset(ustr, '\0', 10);
+
+ if (tolower(s[2]) == 'x')
+ {
+ memcpy(ustr, s + 3, s_end - s - 3);
+ uchar[0] = strtol(ustr, NULL, 16);
+ }
+ else
+ {
+ memcpy(ustr, s + 2, s_end - s - 2);
+ uchar[0] = strtol(ustr, NULL, 10);
+ }
+
+ if ((0xDC00 <= uchar[0] && uchar[0] <= 0xDFFF) || (uchar[0] == 0))
+ return NULL;
+
+ utf8_char = eina_unicode_unicode_to_utf8(uchar, NULL);
+ strcpy(utf8_escape, utf8_char);
+ free(utf8_char);
+
+ return utf8_escape;
+ }
+
return NULL;
}
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel