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: John Wiegley <jwiegley <at> gmail.com>
Cc: 22300 <at> debbugs.gnu.org, esq <at> lawlist.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 22:31:49 +0200
> From: John Wiegley <jwiegley <at> gmail.com>
> Cc: drew.adams <at> oracle.com,  22300 <at> debbugs.gnu.org,  esq <at> lawlist.com
> Date: Mon, 04 Jan 2016 11:48:57 -0800
> 
> >>>>> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Is there a C-callable API that could establish which one is it? Something
> > like the Posix 'pathconf', perhaps, with some magic _PC_something argument?
> 
> It looks like getattrlist(2) is what you need:
> 
> https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man2/getattrlist.2.html
> 
> Specifically, the volume attribute VOL_CAP_FMT_CASE_SENSITIVE.

Thanks.  Patches are welcome to use this in rename-file.  I would
suggest a Darwin-specific version of string-equal that would compare
case-insensitively or case-sensitively as the volume requires that.
Then we could call that function from rename-file, like we do with
string-equal in the DOS_NT part there.




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

Previous Next


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