[macruby-changes] [MacRuby/MacRuby] 814de0: revert my previous commit (d5d1e6f294dacf658b7c9fa...
noreply at github.com
noreply at github.com
Thu Jun 2 09:05:42 PDT 2011
Branch: refs/heads/master
Home: https://github.com/MacRuby/MacRuby
Commit: 814de01359737ee74437cdc806a07cef2850906f
https://github.com/MacRuby/MacRuby/commit/814de01359737ee74437cdc806a07cef2850906f
Author: Watson <watson1978 at gmail.com>
Date: 2011-06-02 (Thu, 02 Jun 2011)
Changed paths:
M io.c
Log Message:
-----------
revert my previous commit (d5d1e6f294dacf658b7c9fa4e3ae2effe7449315). because IO#read is broken after calling IO#ungetc.
Test Script:
{{{
require 'test/unit/assertions.rb'
include Test::Unit::Assertions
r, w = IO.pipe
w.write "foobar"
w.close
c = r.read(1)
r.ungetc(c)
assert_equal("foo", r.read(3))
assert_equal("bar", r.read(3))
r.close
puts :ok
}}}
More information about the macruby-changes
mailing list