GNU bug report logs -
#26490
25.1; package-buffer-info is incorrectly case-insensitive
Previous Next
Reported by: Steve Purcell <steve <at> sanityinc.com>
Date: Fri, 14 Apr 2017 00:46:02 UTC
Severity: minor
Found in version 25.1
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Steve Purcell <steve <at> sanityinc.com>
> 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.
This bug report was last modified 5 years and 287 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.