Re: [Chicken-hackers] [PATCH] Fix rename-file behavior on Windows when destination exists

2014-10-14 Thread Michele La Monaca
On Sun, Oct 5, 2014 at 8:31 PM, Peter Bex peter@xs4all.nl wrote: On Mon, Aug 18, 2014 at 04:34:23PM +0200, Michele La Monaca wrote: Hi, (rename-file x y) fails on Windows if y already exists. I think it would be better to have the same behavior as Unix (i.e. overwrite). The attached

Re: [Chicken-hackers] [PATCH] Fix rename-file behavior on Windows when destination exists

2014-10-05 Thread Peter Bex
On Mon, Aug 18, 2014 at 04:34:23PM +0200, Michele La Monaca wrote: Hi, (rename-file x y) fails on Windows if y already exists. I think it would be better to have the same behavior as Unix (i.e. overwrite). The attached patch does that. Hi Michele, Sorry for the late reply, I've only now

[Chicken-hackers] [PATCH] Fix rename-file behavior on Windows when destination exists

2014-08-18 Thread Michele La Monaca
Hi, (rename-file x y) fails on Windows if y already exists. I think it would be better to have the same behavior as Unix (i.e. overwrite). The attached patch does that. Regards, Michele From 57098c32ce1b02834b972924c85690653b2d4fb3 Mon Sep 17 00:00:00 2001 From: Michele La Monaca

Re: [Chicken-hackers] [PATCH] Fix rename-file behavior on Windows when destination exists

2014-08-18 Thread John Cowan
Michele La Monaca scripsit: (rename-file x y) fails on Windows if y already exists. I think it would be better to have the same behavior as Unix (i.e. overwrite). The attached patch does that. +1 -- John Cowan http://www.ccil.org/~cowanco...@ccil.org The internet is a web

Re: [Chicken-hackers] [PATCH] Fix rename-file behavior on Windows when destination exists

2014-08-18 Thread John Cowan
Mario Domenech Goulart scripsit: Shouldn't we check !defined(__CYGWIN__) here? It can't hurt, but since 2012 Cygwin no longer defines _WIN32. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org The whole of Gaul is quartered into three halves. --Julius Caesar