ruby-changes:15032
From: matz <ko1@a...>
Date: Sat, 13 Mar 2010 16:00:40 +0900 (JST)
Subject: [ruby-changes:15032] Ruby:r26907 (trunk): * io.c (rb_io_print): should not print field separator at the end
matz 2010-03-13 15:59:37 +0900 (Sat, 13 Mar 2010) New Revision: 26907 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26907 Log: * io.c (rb_io_print): should not print field separator at the end of arguments. [ruby-talk:358633] Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 26906) +++ ChangeLog (revision 26907) @@ -1,3 +1,8 @@ +Sat Mar 13 15:44:20 2010 Yukihiro Matsumoto <matz@r...> + + * io.c (rb_io_print): should not print field separator at the end + of arguments. [ruby-talk:358633] + Sat Mar 13 14:49:55 2010 Yukihiro Matsumoto <matz@r...> * enum.c (enum_join): remove Enumerable#join. [ruby-core:24786] Index: io.c =================================================================== --- io.c (revision 26906) +++ io.c (revision 26907) @@ -5906,10 +5906,10 @@ argv = &line; } for (i=0; i<argc; i++) { - rb_io_write(out, argv[i]); - if (!NIL_P(rb_output_fs)) { + if (!NIL_P(rb_output_fs) && i>0) { rb_io_write(out, rb_output_fs); } + rb_io_write(out, argv[i]); } if (argc > 0 && !NIL_P(rb_output_rs)) { rb_io_write(out, rb_output_rs); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/