[PATCH] StringIO.puts shouldn't append \n if it's already there
---------------------------------------------------------------
Key: JRUBY-1248
URL: http://jira.codehaus.org/browse/JRUBY-1248
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Environment: rev4066
Reporter: Dmitry Verkhovsky
Attachments: patch_r4066_3.txt
test.rb:
require 'stringio'
io = StringIO.new
io.puts("asd\n")
p io.string
>ruby tt.rb
"asd\n"
>jruby tt.rb
"asd\n\n"
^^^^ SHOULD BE ONLY ONE \n
--
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