[GRASS-dev] Re: [grass-code I][566] g.rename fails to rename maps

Glynn Clements glynn at gclements.plus.com
Fri Feb 8 17:40:06 EST 2008


Patton, Eric wrote:

> >I meant: what happens if you remove the G_strcasecmp() check (or
> >replace it with strcmp()), then try it. 
> 
> I finally had a chance to test this out. Replacing line 28 in /general/manage/lib/do_rename.c:
> 
> if (G_strcasecmp (old,new) == 0) return 1; 
> 
> with 
> 
> if (strcmp (old,new) == 0) return 1;
> 
> enables correct renaming for rasters, vectors, and regions. 

On Windows?

What I'm concerned about is that, on Windows, it will decide that
source and destination are different and proceed to delete the
"destination". Allowing that to happen isn't an option, so until any
alternative has been tested thoroughly on Windows, it needs to stay as
G_strcasecmp().

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list