String.split is broken
----------------------
Key: JRUBY-3132
URL: http://jira.codehaus.org/browse/JRUBY-3132
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.5, JRuby 1.1.4
Reporter: craig mcmillan
mccraig:~$ jruby --version
String.split behaviour changes after certain invocations :
jruby 1.1.4 (ruby 1.8.6 patchlevel 114) (2008-08-28 rev 7570) [i386-java]
mccraig:~$ jirb --version
irb 0.9.5(05/04/13)
mccraig:~$ jirb
irb(main):001:0> str="a\\nb\\nc"
=> "a\\nb\\nc"
irb(main):002:0> str.split( "\\n" )
=> ["a", "b", "c"]
irb(main):003:0> str.split( "\n" )
=> ["a\\nb\\nc"]
irb(main):004:0> str.split( "\\n" )
=> ["a\\nb\\nc"]
--
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