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
substr function make illegal answer when using Unicode wide character #7876
Comments
From roku@shinjusha.comCreated by roku@shinjusha.comDear Sir. When I runned this script, I received illegal result.use utf8;
|
From @iabynOn Thu, Apr 14, 2005 at 08:54:06AM -0000, Toshiharu Roppongi wrote:
Thanks for the report. Turns out there was a bug in the code that caches Dave -- Change 24270 by davem@davem-splatty on 2005/04/21 15:36:14 [perl #34976] substr uses utf8 length cache incorrectly Affected files ... ... //depot/perl/sv.c#807 edit Differences ... ==== //depot/perl/sv.c#807 (text) ==== @@ -6402,7 +6402,7 @@ ==== //depot/perl/t/op/substr.t#31 (xtext) ==== @@ -1,6 +1,6 @@ -print "1..190\n"; #P = start of string Q = start of substr R = end of substr S = end of string @@ -658,3 +658,10 @@ |
The RT System itself - Status changed from 'new' to 'open' |
@iabyn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#34976 (status was 'resolved')
Searchable as RT34976$
The text was updated successfully, but these errors were encountered: