ruby-changes:10565
From: nobu <ko1@a...>
Date: Sun, 8 Feb 2009 18:36:18 +0900 (JST)
Subject: [ruby-changes:10565] Ruby:r22121 (trunk): * io.c (rb_io_s_binread): ensures file path.
nobu 2009-02-08 18:34:46 +0900 (Sun, 08 Feb 2009) New Revision: 22121 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22121 Log: * io.c (rb_io_s_binread): ensures file path. [ruby-dev:37940] Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 22120) +++ ChangeLog (revision 22121) @@ -1,3 +1,7 @@ +Sun Feb 8 18:34:43 2009 Nobuyoshi Nakada <nobu@r...> + + * io.c (rb_io_s_binread): ensures file path. [ruby-dev:37940] + Sun Feb 8 13:52:02 2009 Tanaka Akira <akr@f...> * ext/socket/raddrinfo.c (init_unix_addrinfo): add socktype argument. Index: io.c =================================================================== --- io.c (revision 22120) +++ io.c (revision 22121) @@ -7370,6 +7370,7 @@ struct foreach_arg arg; rb_scan_args(argc, argv, "12", NULL, NULL, &offset); + FilePathValue(argv[0]); arg.io = rb_io_open(argv[0], rb_str_new_cstr("rb:ASCII-8BIT"), Qnil, Qnil); if (NIL_P(arg.io)) return Qnil; arg.argv = argv+1; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/