=begin
Yeah, all MRI versions from 1.8.6, through 1.8.7, 1.9.0, 1.9.1, 1.9.2-dev, all report "Permission denied" on Windows. Except for cygwin ruby :) Actually, even JRuby reports Permission denied.
This difference between platforms is indeed unfortunate.
=end
This issue was solved with changeset r35131.
Roger, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
ruby.c (load_file_internal): bail out if the script is a directory.
[Feature #2408][ruby-core:26925]