"WATANABE Hirofumi" <eban / os.rim.or.jp> wrote:

> Hi,
>
> Index: win32/win32.c
> ===================================================================
> RCS file: /src/ruby/win32/win32.c,v
> retrieving revision 1.93
> diff -u -1 -r1.93 win32.c
> --- win32/win32.c 1 Aug 2003 06:54:28 -0000 1.93
> +++ win32/win32.c 2 Aug 2003 10:45:28 -0000
> @@ -3190,5 +3190,2 @@
>      }
> -    if (!(stat.st_mode & S_IFDIR) || IsWin95()) {
> - return utime(path, times);
> -    }
>
>
> --
> eban
>


Works here :-)))


load '_ver'
Dir.chdir('C:\WINDOWS')
fname = 'foo.txt'
p File.atime(fname)
p File.ctime(fname)
p File.mtime(fname)

printf("\n%o\n\n", File.stat(fname).mode)
File.utime(Time.now, Time.now, fname)

p File.atime(fname)
p File.ctime(fname)
p File.mtime(fname)


#-> ruby 1.8.0 (2003-08-01) [i586-bccwin32]
#-> Sat Aug 02 00:00:00  2003
#-> Sat Aug 02 08:33:25  2003
#-> Sat Aug 02 12:46:06  2003
#->
#-> 100600
#->
#-> Sat Aug 02 00:00:00  2003
#-> Sat Aug 02 08:33:25  2003
#-> Sat Aug 02 12:48:38  2003


So I'm running again.
(and no need to re-install Windows !:)

Thanks Eban,

daz