[macruby-changes] [1241] MacRuby/branches/experimental/io.c

source_changes at macosforge.org source_changes at macosforge.org
Sat Mar 28 16:57:01 PDT 2009


Revision: 1241
          http://trac.macosforge.org/projects/ruby/changeset/1241
Author:   pthomson at apple.com
Date:     2009-03-28 16:57:01 -0700 (Sat, 28 Mar 2009)
Log Message:
-----------
A temporary hack to fix gets() behavior at end of line until I figure out exactly what is wrong with #eof?

Modified Paths:
--------------
    MacRuby/branches/experimental/io.c

Modified: MacRuby/branches/experimental/io.c
===================================================================
--- MacRuby/branches/experimental/io.c	2009-03-28 23:47:54 UTC (rev 1240)
+++ MacRuby/branches/experimental/io.c	2009-03-28 23:57:01 UTC (rev 1241)
@@ -1265,7 +1265,7 @@
 			}
 		}
 	}
-	
+	if ((rb_io_eof(io, 0) == Qtrue) && (RSTRING_LEN(bstr) == 0)) return Qnil;
     return bstr; 
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090328/11d625da/attachment-0001.html>


More information about the macruby-changes mailing list