New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'split'/'index' problem for utf8 #6547
Comments
From perl@geez.orgGreetings, I've found a really odd behavior either with split or index, Its really weird and unfortunately also blocking a real world thanks, /Daniel I'm using Perl 5.8.0 on a Redhat 8 Linux: begin 775 split-utf-break.pl.gz |
From @nwc10On Thu, May 29, 2003 at 10:19:27PM -0000, Daniel Yacob wrote:
The usual answer to that is "try running with LANG=C" (RedHat defaults I see 2, (the "right" answer, if I understand things correctly) not 6 Nicholas Clark |
From perl@geez.orgthanks for the test, I set LC_ALL=C and LANG=C and still get So it actually worked better with a UTF8 locale (am_ET.UTF-8). thanks, /Daniel |
From @andkNicholas Clark <nick@ccl4.org> writes:
I can and I'm also running Debian.
The "6" was coming with bleadperl 18530 and is also what maint gives. -- Summary of my perl5 (revision 5.0 version 9 subversion 0 patch 18374) configuration: Characteristics of this binary (from libperl): |
From @doyI can't reproduce this, even using the system perl on Debian (5.12.4). -doy |
From @cpansproutOn Fri Jul 06 13:25:00 2012, doy wrote:
I can’t, on 5.8.1, 5.10.1 and 5.17.2. -- Father Chrysostomos |
From [Unknown Contact. See original ticket]On Fri Jul 06 13:25:00 2012, doy wrote:
I can’t, on 5.8.1, 5.10.1 and 5.17.2. -- Father Chrysostomos |
From @doyClosing this, since we can't reproduce it. If someone is able to -doy |
From [Unknown Contact. See original ticket]Closing this, since we can't reproduce it. If someone is able to -doy |
@doy - Status changed from 'open' to 'resolved' |
From @nwc10On Fri, Jul 06, 2012 at 01:54:53PM -0700, Jesse Luehrs via RT wrote:
The test case in the ticket fails on the revision that Andreas mentions in Adapting the test case to die if the two values are not equal permits d69d2d9 is the first bad commit Fix for "#22375 'split'/'index' problem for utf8". p4raw-id: //depot/perl@19640 :100644 100644 d82e354341db1415bc03834f7cf84763568a16b8 310ba50465ec1a2c866438208805f6bcf626227a M sv.c The actual fix is tiny: Inline Patchdiff --git a/sv.c b/sv.c
index d82e354..310ba50 100644
--- a/sv.c
+++ b/sv.c
@@ -5952,8 +5952,6 @@ Perl_sv_pos_b2u(pTHX_ register SV* sv, I32* offsetp)
}
cache[0] -= ubackw;
-
- return;
}
}
}
7e8c5da is the first bad commit integrate (by hand) #18353 and #18359 from maint-5.8: Nicholas Clark |
Migrated from rt.perl.org#22375 (status was 'resolved')
Searchable as RT22375$
The text was updated successfully, but these errors were encountered: