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

Patton, Eric epatton at nrcan.gc.ca
Fri Feb 8 11:57:38 EST 2008


Glynn:
>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. 

~ Eric.




More information about the grass-dev mailing list