File.stat.blksize returns nil and not 0 on win2k

Hello,

on the 1.8.0 ruby version of the pragprog installer, File.stat(file).blksize
returns nil and not 0 on a windows 2k machine. According to the Pickaxe, it
should “return 0 on platforms that don’t support this information”.

is this change intentional ?

TIA,

···


Pierre Baillet
Among the maxims on Lord Naoshige’s wall, there was this one: “Matters of great
concern should be treated lightly.” Master Ittei commented, "Matters of small
concern should be treated seriously."
Ghost Dog - The Way of the Samouraï

Hi,

···

In message “File.stat.blksize returns nil and not 0 on win2k” on 03/07/05, Pierre Baillet oct@zoy.org writes:

on the 1.8.0 ruby version of the pragprog installer, File.stat(file).blksize
returns nil and not 0 on a windows 2k machine. According to the Pickaxe, it
should “return 0 on platforms that don’t support this information”.

is this change intentional ?

Yes. Undefined field values are nil now.

						matz.

Hi,

···

On Sat, Jul 05, 2003, Yukihiro Matsumoto wrote:

is this change intentional ?

Yes. Undefined field values are nil now.

Thanks for the quick reply !

FYI, this triggers a bug on current wwwsrv build : I’ll soon provide a
set of small of changes (that allow the wwwsrv to work correctly on a
win32 box) to the wwwsrv maintainer.

Cheers,

Pierre Baillet
Sauvez un arbre, mangez un castor