From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#26490: 25.1; package-buffer-info is incorrectly case-insensitive Date: Fri, 14 Apr 2017 10:31:05 +0300 Message-ID: <83pogfh2di.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1492155075 20946 195.159.176.226 (14 Apr 2017 07:31:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Apr 2017 07:31:15 +0000 (UTC) Cc: 26490@debbugs.gnu.org To: Steve Purcell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 14 09:31:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyvhB-0005Hs-Kr for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Apr 2017 09:31:05 +0200 Original-Received: from localhost ([::1]:52174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyvhH-0005HO-CV for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Apr 2017 03:31:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyvhC-0005H7-0E for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2017 03:31:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyvh8-0006bD-Tc for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2017 03:31:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48188) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cyvh8-0006b9-Q7 for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2017 03:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cyvh8-0007Vy-Hk for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2017 03:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Apr 2017 07:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26490 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26490-submit@debbugs.gnu.org id=B26490.149215505028869 (code B ref 26490); Fri, 14 Apr 2017 07:31:02 +0000 Original-Received: (at 26490) by debbugs.gnu.org; 14 Apr 2017 07:30:50 +0000 Original-Received: from localhost ([127.0.0.1]:46387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyvgw-0007VY-EQ for submit@debbugs.gnu.org; Fri, 14 Apr 2017 03:30:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyvgv-0007VK-3S for 26490@debbugs.gnu.org; Fri, 14 Apr 2017 03:30:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyvgn-0006VI-0F for 26490@debbugs.gnu.org; Fri, 14 Apr 2017 03:30:44 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyvgm-0006VC-St; Fri, 14 Apr 2017 03:30:40 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1707 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cyvgm-0007Fw-4J; Fri, 14 Apr 2017 03:30:40 -0400 In-reply-to: (message from Steve Purcell on Fri, 14 Apr 2017 12:44:24 +1200) 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" Xref: news.gmane.org gmane.emacs.bugs:131562 Archived-At: > From: Steve Purcell > Date: Fri, 14 Apr 2017 12:44:24 +1200 > > `package-buffer-info' looks for an "filename.el ends here" comment line, > where "filename.el" matches that provided on the first line of the > file. However, it does not set `case-fold-search' to nil explicitly, and > so will happily allow "FiLeNaMe.EL" in the trailing line. > > I rely on this function in package-lint to detect certain issues with > packaging, and noticed this failure there. I can work around it by > unsetting `case-fold-search', but this seems the wrong fix. Why do you think it would be wrong for you in your special use case to bind case-fold-search to nil? I think it's exactly the right solution. > A simple patch is attached. What about Emacs running on case-insensitive filesystems? What will your patch do in that case? Thanks.