[macruby-changes] [3317] MacRuby/trunk/io.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jan 20 21:15:50 PST 2010
Revision: 3317
http://trac.macosforge.org/projects/ruby/changeset/3317
Author: lsansonetti at apple.com
Date: 2010-01-20 21:15:49 -0800 (Wed, 20 Jan 2010)
Log Message:
-----------
File.open: handle the given path argument as a path, not a string
Modified Paths:
--------------
MacRuby/trunk/io.c
Modified: MacRuby/trunk/io.c
===================================================================
--- MacRuby/trunk/io.c 2010-01-21 01:46:03 UTC (rev 3316)
+++ MacRuby/trunk/io.c 2010-01-21 05:15:49 UTC (rev 3317)
@@ -2292,7 +2292,7 @@
if (NIL_P(modes)) {
modes = (VALUE)CFSTR("r");
}
- StringValue(path);
+ FilePathValue(path);
const char *filepath = RSTRING_PTR(path);
const int flags = convert_mode_string_to_oflags(modes);
const mode_t perm = NIL_P(permissions) ? 0666 : NUM2UINT(permissions);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100120/dbea5459/attachment-0001.html>
More information about the macruby-changes
mailing list