From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22300: 25.1.50; Dired -- renaming folders/files to CamelCase/UPPERCASE/lowercase. Date: Mon, 04 Jan 2016 22:31:49 +0200 Message-ID: <83oad15bnu.fsf@gnu.org> References: <45748772-3d35-49f5-a350-5d04d023fd23@default> <83twmt73g6.fsf@gnu.org> <83si2d5duq.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1451939613 12750 80.91.229.3 (4 Jan 2016 20:33:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Jan 2016 20:33:33 +0000 (UTC) Cc: 22300@debbugs.gnu.org, esq@lawlist.com To: John Wiegley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 04 21:33:18 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aGBoT-0003g4-VG for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jan 2016 21:33:10 +0100 Original-Received: from localhost ([::1]:47008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGBoT-0007ZH-Ef for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jan 2016 15:33:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGBoP-0007Vr-3O for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2016 15:33:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGBoM-0001IZ-4H for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2016 15:33:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGBoL-0001IQ-PR for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2016 15:33:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aGBoL-0004Kn-Li for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2016 15:33:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jan 2016 20:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22300 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22300-submit@debbugs.gnu.org id=B22300.145193952316583 (code B ref 22300); Mon, 04 Jan 2016 20:33:01 +0000 Original-Received: (at 22300) by debbugs.gnu.org; 4 Jan 2016 20:32:03 +0000 Original-Received: from localhost ([127.0.0.1]:37928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGBnO-0004JP-RT for submit@debbugs.gnu.org; Mon, 04 Jan 2016 15:32:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50796) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGBnN-0004Iw-A0 for 22300@debbugs.gnu.org; Mon, 04 Jan 2016 15:32:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGBnH-0000ij-8r for 22300@debbugs.gnu.org; Mon, 04 Jan 2016 15:31:56 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGBnB-0000iK-4O; Mon, 04 Jan 2016 15:31:49 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3396 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aGBn9-0000f7-9d; Mon, 04 Jan 2016 15:31:47 -0500 In-reply-to: (message from John Wiegley on Mon, 04 Jan 2016 11:48:57 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111216 Archived-At: > From: John Wiegley > Cc: drew.adams@oracle.com, 22300@debbugs.gnu.org, esq@lawlist.com > Date: Mon, 04 Jan 2016 11:48:57 -0800 > > >>>>> Eli Zaretskii 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.