GNU bug report logs - #22300
25.1.50; Dired -- renaming folders/files to CamelCase/UPPERCASE/lowercase.

Previous Next

Package: emacs;

Reported by: Keith David Bershatsky <esq <at> lawlist.com>

Date: Sun, 3 Jan 2016 20:58:02 UTC

Severity: normal

Merged with 24441

Found in versions 24.5, 25.1.50

Fixed in version 26.1

Done: Ken Brown <kbrown <at> cornell.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Keith David Bershatsky <esq <at> lawlist.com>
Cc: 22300 <at> debbugs.gnu.org, jwiegley <at> gmail.com, drew.adams <at> oracle.com
Subject: bug#22300: 25.1.50; Dired -- renaming folders/files to CamelCase/UPPERCASE/lowercase.
Date: Mon, 04 Jan 2016 17:50:55 +0200
> Date:  Sun, 03 Jan 2016 20:19:50 -0800
> From:  Keith David Bershatsky <esq <at> lawlist.com>
> Cc:  22300 <at> debbugs.gnu.org,Drew Adams <drew.adams <at> oracle.com>,John Wiegley <jwiegley <at> gmail.com>
> 
>   (let ((default-directory "/Users/HOME/Desktop/"))
>     (rename-file "/Users/HOME/Desktop/FOO" "/Users/HOME/Desktop/foo" 
> 'ok-if-already-exists))
> 
> which yields the following debugger output:
> 
>   (file-error "Renaming" "Invalid argument" "/Users/HOME/Desktop/FOO" "/Users/HOME/Desktop/foo/FOO")

This is expected, if your filesystem is case-insensitive.  See my
other messages for the explanation why.

The question is: are all OS X filesystems case-insensitive.  If they
are, we just need to reuse the DOS_NT code that's already in
rename-file.




This bug report was last modified 8 years and 60 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.