[MacRuby/MacRuby] 814de0: revert my previous commit (d5d1e6f294dacf658b7c9fa...
2 Jun
2011
2 Jun
'11
4:05 p.m.
Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: 814de01359737ee74437cdc806a07cef2850906f https://github.com/MacRuby/MacRuby/commit/814de01359737ee74437cdc806a07cef28... Author: Watson <watson1978@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 }}}
5273
Age (days ago)
5273
Last active (days ago)
0 comments
1 participants
participants (1)
-
noreply@github.com