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: jples...@redhat.com
          Reporter: mjusz...@redhat.com
        QA Contact: extras...@fedoraproject.org
                CC: iarn...@gmail.com, jples...@redhat.com, ka...@ucw.cz,
                    mmasl...@redhat.com, mspa...@redhat.com,
                    perl-devel@lists.fedoraproject.org, ppi...@redhat.com,
                    psab...@redhat.com, rhug...@redhat.com,
                    spo...@gmail.com
  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@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to