1 https://sources.debian.org/data/main/b/bidiv/1.5-6/debian/patches/fribidi_019
3 Description: Fix building with fribidi 1.9
4 Author: أحمد المحمودي <aelmahmoudy@users.sourceforge.net>
5 Bug-Debian: http://bugs.debian.org/568130
9 @@ -141,8 +141,9 @@ bidiv(FILE *fp)
14 - fribidi_iso8859_8_to_unicode_c(c);
15 + fribidi_charset_to_unicode(
16 + FRIBIDI_CHAR_SET_ISO8859_8,
17 + &c, 1, &unicode_in[len]);
19 unicode_in[len]=((c & 037) << 6) + (c1 & 077);
21 @@ -153,8 +154,9 @@ bidiv(FILE *fp)
22 In the future we will have a language
23 option, which will control this (as well
24 as the output encoding). */
26 - fribidi_iso8859_8_to_unicode_c(c);
27 + fribidi_charset_to_unicode(
28 + FRIBIDI_CHAR_SET_ISO8859_8,
29 + &c, 1, &unicode_in[len]);
33 @@ -206,11 +208,11 @@ bidiv(FILE *fp)
37 - fribidi_unicode_to_utf8(unicode_out, len,
39 + fribidi_unicode_to_charset(FRIBIDI_CHAR_SET_UTF8,
40 + unicode_out, len, out);
42 - fribidi_unicode_to_iso8859_8(unicode_out, len,
44 + fribidi_unicode_to_charset(FRIBIDI_CHAR_SET_ISO8859_8,
45 + unicode_out, len, out);
46 /* if rtl_line (i.e., base_dir is RL), and we didn't fill the
47 entire width, we need to pad with spaces. Maybe in the
48 future this should be an option.