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.
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@gclements.plus.com>