From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Newsgroups: gmane.emacs.bugs Subject: bug#66255: 29.1; package-generate-autoloads utf-8-emacs-unix coding and git on windows breaks Date: Thu, 28 Sep 2023 12:21:54 +0200 Message-ID: <915FB26A-E539-4CAD-8CD3-30366938EB40@gmx.net> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.3\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6621"; mail-complaints-to="usenet@ciao.gmane.io" To: 66255@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 28 13:16:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qlp0A-0001UP-CD for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Sep 2023 13:16:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qlozn-0005Td-Jf; Thu, 28 Sep 2023 07:15:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qlozl-0005TM-4p for bug-gnu-emacs@gnu.org; Thu, 28 Sep 2023 07:15:49 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qlozk-0003oa-Sk for bug-gnu-emacs@gnu.org; Thu, 28 Sep 2023 07:15:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qlozy-0006kW-6K for bug-gnu-emacs@gnu.org; Thu, 28 Sep 2023 07:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Sep 2023 11:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66255 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169589973325889 (code B ref -1); Thu, 28 Sep 2023 11:16:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Sep 2023 11:15:33 +0000 Original-Received: from localhost ([127.0.0.1]:53147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qlozS-0006jN-F6 for submit@debbugs.gnu.org; Thu, 28 Sep 2023 07:15:33 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:36736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qloA5-00051D-S3 for submit@debbugs.gnu.org; Thu, 28 Sep 2023 06:22:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qlo9m-00087o-F0 for bug-gnu-emacs@gnu.org; Thu, 28 Sep 2023 06:22:06 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qlo9e-0004uN-DS for bug-gnu-emacs@gnu.org; Thu, 28 Sep 2023 06:22:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1695896514; x=1696501314; i=robewald@gmx.net; bh=hgReDtEO2zpA3Bmt6cCIgjLjyhzn/td3DQDV03agAcA=; h=X-UI-Sender-Class:From:Subject:Date:To; b=JyFSYkjFNj+Clzd1wk7tlvo1dNMFVjcFNAb80O6sa2pSZDqHAnP+ZrkeBTRFr6hDRv7IGzpZJBe SfMSCLtmvcbhwkZ4zZwkLRBl33iSzfR4fZ4TZx49m1Cz8goHBXsxVXH3A7lKTSDIEzbuqegZBGMws JzajIezvjwmpF+EAkjUVrXtNZhGFC3+Cc8DeU6Al36yLQTXzXSLSCGGeUxCla9kW0SX/J0OIhYgpx JDBuCWR130TnmjXFIdChkPq/5vg23eB1wLMPF5gkGQqzxPoCvvBqDR2EJIYL5ZJ2769HZC8rVdhmN DKQ98aORIFW2f3gLgIia351P8tgT819TiCmA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from smtpclient.apple ([81.166.135.105]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MlNtF-1rUoUZ3EIn-00lmQS for ; Thu, 28 Sep 2023 12:21:54 +0200 X-Mailer: Apple Mail (2.3696.120.41.1.3) X-Provags-ID: V03:K1:riI1Il5B6AhUxkdZYUjNxpTE1syUNxdiNEITeBG0OcwLiCBPKBA OJgRbUKiWMqZAJVdxLWEFQMzm632d0zw/T8yvs8gQ9J/rla7JOxxr+4m5nN53ddGgf9Cdfu GMfN3mZsoSYxOHa5tOwsJCfOOu8qOeTx2BfoZ5tvqunbibkiL6ZcWDC+xoo0MvAbKoJvlGd eqOtNnh6AgHip17iwK5ww== UI-OutboundReport: notjunk:1;M01:P0:2r7MxgXVXvE=;hxQQl1zjotatBvOfZIUm1gBHIQy 6CYBkgTKkKCg4GvKqpHwfl6Mx3WuenZee0fMTcj6ove+xaPAhMLXWsJuAiASPXsCCKYnu8+ka S/dz7LZFurSp4W9CHD4GIqxunFQOCo1DDih7KjIhvl14ZqF6I9Y454QZk8/D4tbdFy4JDaEe5 A5HhNhwXyl4mkqbMOK7IQVuXb0nbnc6NYFwYbg2gzBQFbzwBRp5ySwRGz/1ZLmGvXET6SqFO7 zCccSUl5HKjBbS1DHM5sH2A46TcPbSG5/hb1g2vIWzkKDKwxIvaFXaAXTmxlqVTkbaNKn8lWq QqpFyGjwJimMrbe60SEx05BJnRI4U4hlMd6PiZ5qpn6PHM4ud6OTPRHBW820XHhqBA/fihzvF 0vKv7V+Q+0HwnrRXDk+LJTQadSlAaPlIZyOAN/wS8vPralurL+KAOHwrFNlYJuYNvZh/OX+uA ZAklEHoVMu3fc1VKwXEOz6/V79iwW/DziJPqfi7G+4Bd4ziCzTZha5VGWA7bDjOze63OvlEly V2NQJE9VRIF7zc8Jr0kiPKKiPXvD3Lk7aSGK+GFzz16itja5OsUbpXDGv2FWIwNNCUBYE3EO2 ybc3Lm+F1bwV4c5r7jYrRvmekmlKMnyEimA19HNSHsC+A/e61vnYK+h157KdfXpdkpOoiYtJY +A5C/Yf53XrBLL8Gv/kPYFDwh9XnoCGDtbmj0PBIGxf2kfKmxjMduVjhIRPYytyWIHZd73dC5 sLhpvXror5//LPqn5Z59cBJ9eB6QGlLsG2QHxojmGOCQ+Q1b/wIal+vGYMjbUqGPYtVVHog7 Received-SPF: pass client-ip=212.227.17.21; envelope-from=robewald@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 28 Sep 2023 07:15:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:271443 Archived-At: When installing packages on emacs 29.1 the interaction with git on windows can lead to breakage. The behaviour can be reproduced on windows with the following steps. - With an empty .emacs.d: (install-package 'seq) observe that .emacs.d/elpa/seq-2.24/seq-autoloads.el is created and coding at the very bottom is set to utf-8-emacs-unix - On the command line inside the directory .emacs.d: git init git add -A elpa git commit -m "testing encodings" rm -rf elpa git checkout -f master - now emacs doesn't properly load seq-autoloads.el. Since git converts the line endings when writing the file, it now has crlf line endings. This conflicts with the coding set to utf-8-emacs-unix on the bottom of the file. As a result the error message is shown: "File = mode specification error: (user-error Local variables entry is missing the suffix)". It is very hard to figure out why this happens. This used to work in emacs 28.2. There, the coding system of the = autoload files was set to utf-8. A workaround is to set git config core.autocrlf false in the .emacs.d repository on windows. This however is hard to discover. If feasible, I suggest to make the default coding system in the = autoloads utf-8 as it used to be. In GNU Emacs 29.1 (build 2, x86_64-w64-mingw32) of 2023-07-31 built on AVALON Windowing system distributor 'Microsoft Corp.', version 10.0.19045 System Description: Microsoft Windows 10 Enterprise = (v10.0.2009.19045.3324) Configured using: 'configure --with-modules --without-dbus --with-native-compilation=3Daot --without-compress-install --with-tree-sitter CFLAGS=3D-O2' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB (NATIVE_COMP present but libgccjit not available) Important settings: value of $LANG: NOR locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr vc-git diff-mode easy-mmode vc-dispatcher org-element org-persist org-id org-refile avl-tree generator oc-basic cl-extra help-mode ol-eww eww xdg url-queue thingatpt mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs json map byte-opt gv bytecomp byte-compile url-vars gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-time gnus-spec gnus-int gnus-range gnus-win gnus nnheader range wid-edit ol-docview doc-view filenotify jka-compr image-mode exif ol-bibtex bibtex iso8601 ol-bbdb ol-w3m ol-doi org-link-doi org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete pcomplete comint ansi-osc ansi-color ring org-list org-footnote org-faces org-entities noutline outline icons ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu calendar cal-loaddefs org-version org-compat org-macs format-spec emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 238895 17293) (symbols 48 20059 2) (strings 32 71381 2647) (string-bytes 1 2174421) (vectors 16 36685) (vector-slots 8 685024 27084) (floats 8 336 161) (intervals 56 362 0) (buffers 984 12))