[Bug 2279842] perl-Text-Bidi-2.18-9.fc41 FTBFS: t/get_mirror_char.t fails with fribidi 1.0.14

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2279842

Petr Pisar <ppisar@xxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|ppisar@xxxxxxxxxx           |tagoh@xxxxxxxxxx
                 CC|                            |gnome-sig@lists.fedoraproje
                   |                            |ct.org, mclasen@xxxxxxxxxx,
                   |                            |michel@xxxxxxxxxxxxxxx,
                   |                            |rstrode@xxxxxxxxxx,
                   |                            |tagoh@xxxxxxxxxx
          Component|perl-Text-Bidi              |fribidi
            Version|rawhide                     |40



--- Comment #1 from Petr Pisar <ppisar@xxxxxxxxxx> ---
This is a bug in fribidi-1.0.14. A reproducer:

$ cat test.c 
#include <fribidi-types.h>
#include <fribidi-mirroring.h>
#include <stdio.h>

int main(void) {
    FriBidiChar input = 0x2BFE;
    FriBidiChar output;
    fribidi_boolean ret;

    ret = fribidi_get_mirror_char(input, &output);
    printf("input=0x%jx, output=0x%jx, fribidi_get_mirror_char() retval=%u\n",
input, output, ret);

    return 0;
}

$ gcc $(pkg-config --cflags fribidi) test.c $(pkg-config --libs fribidi)

fribidi-1.0.13 correctly finds that U+2BFE mirrors to U+221F:

$ rpm -q fribidi
fribidi-1.0.13-4.fc40.x86_64
$ ./a.out 
input=0x2bfe, output=0x221f, fribidi_get_mirror_char() retval=1

However, after upgrading to 1.0.14, fribidi_get_mirror_char() thinks that
U+2BFE has not mirroring chacter:

$ rpm -q fribidi
fribidi-1.0.14-1.fc41.x86_64
$ ./a.out 
input=0x2bfe, output=0x2bfe, fribidi_get_mirror_char() retval=0

I compared Unicode data sets from
<https://www.unicode.org/Public/14.0.0/ucd/BidiMirroring.txt> and
<https://www.unicode.org/Public/15.1.0/ucd/BidiMirroring.txt> and there is no
change:

$ grep 2BFE BidiMirroring.txt-1*
BidiMirroring.txt-14.0.0:221F; 2BFE # RIGHT ANGLE
BidiMirroring.txt-14.0.0:2BFE; 221F # REVERSED RIGHT ANGLE
BidiMirroring.txt-15.1.0:221F; 2BFE # RIGHT ANGLE
BidiMirroring.txt-15.1.0:2BFE; 221F # REVERSED RIGHT ANGLE


-- 
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2279842

Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202279842%23c1
--
_______________________________________________
perl-devel mailing list -- perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to perl-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite Information]

  Powered by Linux