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(a)redhat.com
Reporter: mjuszkie(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: iarnell(a)gmail.com, jplesnik(a)redhat.com, kasal(a)ucw.cz,
mmaslano(a)redhat.com, mspacek(a)redhat.com,
perl-devel(a)lists.fedoraproject.org, ppisar(a)redhat.com,
psabata(a)redhat.com, rhughes(a)redhat.com,
spotrh(a)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=rep...