String#rindex should give 0 when searching for "" (breaks Rubyzip)
------------------------------------------------------------------

                 Key: JRUBY-1164
                 URL: http://jira.codehaus.org/browse/JRUBY-1164
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
         Environment: [EMAIL PROTECTED]
            Reporter: Anders Bengtsson
         Attachments: rindex_empty.patch

Searching for an empty string with rindex:

"hello".rindex("", 0)

Gives 0 in MRI but 5 in JRuby. This breaks Rubyzip.

I fixed it by just removing a special case.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to