Skip to content
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

rindex fails for unicode strings #2754

Closed
p6rt opened this issue May 8, 2012 · 5 comments
Closed

rindex fails for unicode strings #2754

p6rt opened this issue May 8, 2012 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented May 8, 2012

Migrated from rt.perl.org#112818 (status was 'resolved')

Searchable as RT112818$

@p6rt
Copy link
Author

p6rt commented May 8, 2012

From @pmichaud

As reported on the perl6-compiler mailing list​:

  pmichaud@​kiwi​:~/p6/rakudo$ cat x.pl
  my $x = "> perl <";
  say $x;
  say $x.rindex('e');
 
  my $y = "\x261b perl \x261a";
  say $y;
  say $y.rindex('e');
 
  pmichaud@​kiwi​:~/p6/rakudo$ ./perl6 x.pl
  > perl <
  3
  ☛ perl ☚
  substring not found
  in method gist at src/gen/CORE.setting​:8680
  in sub say at src/gen/CORE.setting​:6563
  in block <anon> at x.pl​:7

The underlying problem seems to be that Parrot's reverse_index
operation on unicode strings is broken -- see
  parrot/parrot#767

Pm

@p6rt
Copy link
Author

p6rt commented May 8, 2012

From @pmichaud

On Tue May 08 06​:27​:12 2012, pmichaud wrote​:

As reported on the perl6-compiler mailing list​:

Oops, it was actually reported on perl6-users.

Pm

@p6rt
Copy link
Author

p6rt commented May 8, 2012

@pmichaud - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented May 10, 2012

From @moritz

Now solved, and tested in S32-str/rindex.t.

@p6rt
Copy link
Author

p6rt commented May 10, 2012

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed May 10, 2012
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant