[#23231] What do you think about changing the return value of Kernel#require and Kernel#load to the source encoding of the required file? — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <ed.odanow@...>

Dear Ruby developers and users!

8 messages 2009/04/17

[#23318] [Feature #1408] 0.1.to_r not equal to (1/10) — Heesob Park <redmine@...>

Feature #1408: 0.1.to_r not equal to (1/10)

19 messages 2009/04/26

[ruby-core:23110] File.executable? always returns false on Windows machine

From: Shri Borde <Shri.Borde@...>
Date: 2009-04-02 22:58:20 UTC
List: ruby-core #23110
On my machine, File.executable? is always returning false. I have tried 1.8p27. I am running on a Windows Vista x86 machine. The file system is NTFS. I can't think of anything unusual about my machine.

What are the semantic supposed to be? Most of the people I have asked get a value of true for all of the statements below, even for the File.executable? on the ttf file.

puts File.exists?("C:/windows/fonts/wingding.ttf")
puts File.readable?("C:/windows/fonts/wingding.ttf")
puts File.executable?("C:/windows/fonts/wingding.ttf") # Prints false only for me

puts File.exists?("C:/windows/notepad.exe")
puts File.readable?("C:/windows/notepad.exe")
puts File.executable?("C:/windows/notepad.exe") # Prints false only for me

With the 1.9 binaries, File.executable? returns true only if the file extensions is something like .exe. Again, it always returns true for the people I have asked.

Thanks,
Shri

In This Thread

Prev Next