git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@40101
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
prev_index = index;
}
#ifdef INTERNATIONAL_SUPPORT
- if (bidi_err < 0) {
+ if (bidi_err >= 0) {
free(level_list);
free(text);
}
/* if there's nothing to do, return text
* one char draws are quite common */
- if (len <= 1)
- return text;
+ if (len <= 1) {
+ *ret_len = len;
+ *embedding_level_list = NULL;
+ return strdup(text);
+ }
byte_len = strlen(text); /* we need the actual number of bytes, not number of chars */