From 88f17b520ec9283fbfbeacb2edfe361807e6049c Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sat, 11 Nov 2017 22:59:45 +0200 Subject: [PATCH] Restore call to fribidi_unicode_to_charset This partially reverts commit e71e49f9645d21ab511723caf8c75e8d9880aacf as it broke make check badly! --- bin/fribidi-main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/fribidi-main.c b/bin/fribidi-main.c index ac0b97f..b847ee5 100644 --- a/bin/fribidi-main.c +++ b/bin/fribidi-main.c @@ -458,7 +458,7 @@ FRIBIDI_END_IGNORE_DEPRECATIONS FriBidiStrIndex idx, st; for (idx = 0; idx < len;) { - FriBidiStrIndex wid; + FriBidiStrIndex wid, inlen; wid = break_width; st = idx; @@ -479,7 +479,11 @@ FRIBIDI_END_IGNORE_DEPRECATIONS } if (wid < 0 && idx - st > 1) idx--; + inlen = idx - st; + fribidi_unicode_to_charset (char_set_num, + visual + st, inlen, + outstring); if (FRIBIDI_IS_RTL (base)) printf ("%*s", (int) (do_pad ? (padding_width + -- 2.40.0