summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-08-27 14:11:16 +0100
committerTom Hacohen <tom@stosb.com>2013-08-27 14:11:16 +0100
commit041e3af3e55e28bedf955ebd098813a049040f08 (patch)
tree691b3a253252fd6e1ae7062d2d4079a9322924f0
parentdeacfdce24871b744618ac598c2a54774291e620 (diff)
Evas bidi: Fixed a bug causing BiDi not to work in some cases.
This issue cause non-letter RTL characters not to be detected as RTL which in turn turned off bidi for those strings. Example broken text: <RLM><LRO>[PAS<RLO>[--DES<PDF><PDF>. Thanks to Yakov Goldberg for reporting this issue.
Diffstat (limited to '')
-rw-r--r--ChangeLog4
-rw-r--r--NEWS1
-rw-r--r--src/lib/evas/common/language/evas_bidi_utils.c2
3 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b43e680de9..f27fc70ecf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
12013-08-27 Tom Hacohen
2
3 * Evas bidi: Fixed a bug causing BiDi not to work in some cases.
4
12013-08-20 David Seikel (onefang) 52013-08-20 David Seikel (onefang)
2 6
3 * Edje Lua: Check for both Lua 5.1 and 5.2. 7 * Edje Lua: Check for both Lua 5.1 and 5.2.
diff --git a/NEWS b/NEWS
index e1d3418c05..e4fa3d0f39 100644
--- a/NEWS
+++ b/NEWS
@@ -329,6 +329,7 @@ Fixes:
329 - Fix infinite loop if app use ecore evas image 329 - Fix infinite loop if app use ecore evas image
330 - Fix a long-standing off-by-1 in the C "simd" multiplier. 330 - Fix a long-standing off-by-1 in the C "simd" multiplier.
331 - Skip the map rendering if all points are transparent. 331 - Skip the map rendering if all points are transparent.
332 - Evas bidi: Fixed a bug causing BiDi not to work in some cases.
332 * Ecore: 333 * Ecore:
333 - Don't leak fd on exec. 334 - Don't leak fd on exec.
334 - Fix fd handler increase issue when ecore_pipe_add/del is called repeatedly. 335 - Fix fd handler increase issue when ecore_pipe_add/del is called repeatedly.
diff --git a/src/lib/evas/common/language/evas_bidi_utils.c b/src/lib/evas/common/language/evas_bidi_utils.c
index afadcf2ca7..b421a3aa7d 100644
--- a/src/lib/evas/common/language/evas_bidi_utils.c
+++ b/src/lib/evas/common/language/evas_bidi_utils.c
@@ -87,7 +87,7 @@ evas_bidi_is_rtl_str(const Eina_Unicode *str)
87 for ( ; *str ; str++) 87 for ( ; *str ; str++)
88 { 88 {
89 type = fribidi_get_bidi_type((FriBidiChar) *str); 89 type = fribidi_get_bidi_type((FriBidiChar) *str);
90 if (FRIBIDI_IS_LETTER(type) && FRIBIDI_IS_RTL(type)) 90 if (FRIBIDI_IS_RTL(type))
91 { 91 {
92 return EINA_TRUE; 92 return EINA_TRUE;
93 } 93 }