[Bug 2240458] New: Perl 5.38 breaks Irssi locale

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

 



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

            Bug ID: 2240458
           Summary: Perl 5.38 breaks Irssi locale
           Product: Fedora
           Version: 39
          Hardware: x86_64
               URL: https://github.com/irssi/scripts.irssi.org/issues/857
                OS: Linux
            Status: NEW
         Component: perl
          Severity: medium
          Assignee: jplesnik@xxxxxxxxxx
          Reporter: mjuszkie@xxxxxxxxxx
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: iarnell@xxxxxxxxx, jplesnik@xxxxxxxxxx, kasal@xxxxxx,
                    mmaslano@xxxxxxxxxx, mspacek@xxxxxxxxxx,
                    perl-devel@xxxxxxxxxxxxxxxxxxxxxxx, ppisar@xxxxxxxxxx,
                    psabata@xxxxxxxxxx, rhughes@xxxxxxxxxx,
                    spotrh@xxxxxxxxx
  Target Milestone: ---
    Classification: Fedora



After upgrade to Fedora 39 beta one of scripts in irssi (irc client) broke.
After checking what is going on (I do not know Perl) I found out that length of
string was reported with negative sign.

Opened a ticket at Irssi github account
https://github.com/irssi/scripts.irssi.org/issues/857 and went through
debugging a bit.

Turned out that Perl 5.38 drops locale settings when embedded in C. There is a
bug for it already: https://github.com/Perl/perl5/issues/21366


I do not know which solution should be taken to make it work properly. For
irssi script I have hacky workaround. But would be nice to not have such bug on
release of new Fedora version.

Reproducible: Always

Steps to Reproduce:
1. set locale to any UTF-8 one (I use pl_PL.UTF-8)
2. run irssi
3. run "/script exec print Text::CharWidth::mbswidth("─")" command

Actual Results:  
Should return "1"

Expected Results:  
Returns "-1"

irssi-1.4.4-5.fc39.x86_64
perl-5.38.0-500.fc39.x86_64


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

Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202240458%23c0
_______________________________________________
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