[macruby-changes] [5027] MacRuby/trunk/io.c

source_changes at macosforge.org source_changes at macosforge.org
Tue Dec 14 19:20:06 PST 2010


Revision: 5027
          http://trac.macosforge.org/projects/ruby/changeset/5027
Author:   lsansonetti at apple.com
Date:     2010-12-14 19:20:02 -0800 (Tue, 14 Dec 2010)
Log Message:
-----------
fix a bug in IO.read(path) where the given path would not be handled as a path (calling #to_path if necessary)

Modified Paths:
--------------
    MacRuby/trunk/io.c

Modified: MacRuby/trunk/io.c
===================================================================
--- MacRuby/trunk/io.c	2010-12-15 02:41:39 UTC (rev 5026)
+++ MacRuby/trunk/io.c	2010-12-15 03:20:02 UTC (rev 5027)
@@ -4090,7 +4090,7 @@
     VALUE fname, length, offset;
     rb_scan_args(argc, argv, "13", &fname, &length, &offset, NULL);
 
-    SafeStringValue(fname);
+    FilePathValue(fname);
     struct foreach_arg arg;
     arg.io = rb_file_open(io_alloc(recv, 0), 1, &fname);
     arg.argc = 1;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101214/735bad1d/attachment.html>


More information about the macruby-changes mailing list