From unknown Sun Jun 15 08:51:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Resent-From: Steve Purcell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Mar 2015 16:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 20231@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.142773252616696 (code B ref -1); Mon, 30 Mar 2015 16:23:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Mar 2015 16:22:06 +0000 Received: from localhost ([127.0.0.1]:40632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YccRx-0004LD-3P for submit@debbugs.gnu.org; Mon, 30 Mar 2015 12:22:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33572) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YccRt-0004Kh-VW for submit@debbugs.gnu.org; Mon, 30 Mar 2015 12:22:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YccRm-00051Y-TA for submit@debbugs.gnu.org; Mon, 30 Mar 2015 12:21:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YccRm-00051P-PM for submit@debbugs.gnu.org; Mon, 30 Mar 2015 12:21:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YccRk-00087H-Ox for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2015 12:21:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YccRe-0004xn-GC for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2015 12:21:52 -0400 Received: from purcellpeople.com ([85.214.32.38]:39526 helo=h1189701.stratoserver.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YccRe-0004x3-7m for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2015 12:21:46 -0400 Received: from Mandala.local (unknown [88.202.175.31]) by h1189701.stratoserver.net (Postfix) with ESMTPSA id D3F218200CB for ; Mon, 30 Mar 2015 18:21:43 +0200 (CEST) From: Steve Purcell Date: Mon, 30 Mar 2015 17:21:41 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Some packages in MELPA have Chinese characters in their descriptions. These characters are displayed as numeric backslash escapes in the *packages* buffer. (See https://github.com/milkypostman/melpa/issues/2313.) A specific example is the helm-zhihu-daily package. The archive-contents MELPA provides is served with a utf-8 Content-Type header which is consistent with the encoding of the data within it: http://melpa.org/packages/archive-contents I see that `package--read-archive-file' uses `insert-file-literally': changing this to `insert-file' fixes the problem for me, but this is probably only because I have my defaut local encoding set to utf-8. What seems to be needed, then, is one or more of the following, in roughly decreasing order of preference: - package.el should note the Content-Type received with archive-contents data so that it can be used when applied the locally-cached version, or store the cached version on disk in a uniform encoding - archive maintainers should be able to insert a "-*- coding: ... -*-" local variable or similar marker in their archive-contents in order to declare its encoding - package.el should dictate a standard encoding with which it will `read' cached archive-contents data The second option doesn't appear to work currently. I had a cursory look for package descriptions containing non-ascii chars in ELPA and Marmalade, but didn't find any. However, I don't see that this issue would be specific to any single archive. Happy to help get this fixed if we can agree on an approach. And obviously if I've missed an approach that would reliably work with existing package.el versions, that would be even better. -Steve In GNU Emacs 25.0.50.2 (x86_64-apple-darwin14.1.0, NS appkit-1344.72 Version 10.10.2 (Build 14C109)) of 2015-02-19 on Mandala.local Repository revision: d4ed798d2598a914b1313e58acaff5b66c487318 Windowing system distributor `Apple', version 10.3.1344 Configured using: `configure --with-ns --without-dbus --without-x CFLAGS=-g' Configured features: IMAGEMAGICK ACL LIBXML2 ZLIB Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US locale-coding-system: utf-8 Major mode: Emacs-Lisp Minor modes in effect: checkdoc-minor-mode: t global-magit-wip-save-mode: t magit-wip-save-mode: t magit-auto-revert-mode: t global-flycheck-mode: t flycheck-mode: t redshank-mode: t aggressive-indent-mode: t rainbow-delimiters-mode: t elisp-slime-nav-mode: t highlight-quoted-mode: t highlight-symbol-nav-mode: t highlight-symbol-mode: t diff-hl-mode: t diff-auto-refine-mode: t bug-reference-prog-mode: t paredit-mode: t goto-address-prog-mode: t auto-insert-mode: t auto-compile-on-load-mode: t auto-compile-on-save-mode: t auto-compile-mode: t ipretty-mode: t global-rinari-mode: t shell-dirtrack-mode: t guide-key-mode: t hes-mode: t global-page-break-lines-mode: t page-break-lines-mode: t show-paren-mode: t global-undo-tree-mode: t undo-tree-mode: t global-whitespace-cleanup-mode: t whitespace-cleanup-mode: t global-auto-revert-mode: t electric-pair-mode: t savehist-mode: t desktop-save-mode: t winner-mode: t global-auto-complete-mode: t auto-complete-mode: t ido-ubiquitous-mode: t ido-everywhere: t recentf-mode: t global-anzu-mode: t anzu-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t global-prettify-symbols-mode: t prettify-symbols-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Recent messages: Mark set package--read-archive-file Evaluating... Mark set See buffer *Pp Eval Output*. Mark set Saving file /Users/steve/.emacs.d/elpa/archives/melpa/archive-contents... Wrote /Users/steve/.emacs.d/elpa/archives/melpa/archive-contents Evaluating... See buffer *Pp Eval Output*. Features: (shadow sort mail-extr emacsbug sendmail sanityinc-tomorrow-night-theme cal-move cal-iso diary-lib diary-loaddefs calc-aent calc-yank calc-misc calc-bin calc-alg calc-ext calc-menu calc calc-loaddefs calc-macs default-text-scale ac-inf-ruby parse-time sql-indent sql yaml-mode eieio-opt speedbar sb-image ezimage dframe checkdoc org-capture tramp-sh cider-debug cider-repl apropos sh-script let-alist ert helm-imenu semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet async-bytecomp async helm-aliases helm-elisp helm-eval helm-mode helm-files ffap helm-buffers helm-tags helm-bookmark helm-locate helm-help helm-org helm-grep helm-regexp helm-elscreen helm-adaptive helm-info helm-match-plugin helm-plugin bookmark helm-external helm-net browse-url helm-utils helm helm-source eieio-compat tar-mode names edebug autoload mm-archive network-stream nsm starttls url-cache url-handlers smerge-mode magit-svn magit-wip magit-key-mode magit grep epa epg git-rebase-mode git-commit-mode log-edit message rfc822 mml mml-sec mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log rainbow-mode color view debug mc-mark-more multiple-cursors-core rect hippie-exp align move-dup misearch multi-isearch executable org-agenda haskell-doc inf-haskell haskell-decl-scan sanityinc-tomorrow-bright-theme smex haml-mode js textile-mode css-mode js2-imenu-extras js2-mode markdown-mode robe url-http tls url-auth url-gw url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf mailcap cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs face-remap tidy mmm-erb mmm-region mmm-utils tagedit sgml-mode nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok cider-mode cider-eldoc cider-interaction arc-mode archive-mode cider-doc org-table cider-test cider-stacktrace package-build mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs diff-hl-dired ruler-mode tabify hexl cap-words superword subword ac-haskell-process haskell haskell-load haskell-commands highlight-uses-mode haskell-modules haskell-sandbox haskell-repl haskell-debug haskell-interactive-mode haskell-presentation-mode haskell-font-lock haskell-show haskell-collapse haskell-navigate-imports haskell-compile haskell-process haskell-session url-util haskell-indentation hl-line flycheck-haskell haskell-cabal haskell-utils haskell-mode haskell-string haskell-sort-imports haskell-align-imports haskell-compat haskell-complete-module dabbrev haskell-customize org-element org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view image-mode dired-sort dired+ image-dired image-file dired-x dired-aux dired org-bibtex bibtex org-bbdb org-w3m disp-table vc-git vc-darcs xml flycheck-ledger flycheck-clojure url-parse url-vars json cider-client nrepl-client tramp tramp-compat auth-source gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver queue cider-util clojure-mode flycheck-package lisp-mnt flycheck-hdevtools flycheck subr-x flymake redshank skeleton aggressive-indent rainbow-delimiters elisp-slime-nav etags xref highlight-quoted highlight-symbol diff-hl vc-dir ewoc vc vc-dispatcher diff-mode bug-reference paredit-everywhere paredit goto-addr init init-locales init-local session sanityinc-tomorrow-eighties-theme color-theme-sanityinc-tomorrow autoinsert cus-start cus-load server jka-compr init-ledger init-twitter init-dash init-misc init-common-lisp init-clojure-cider init-clojure init-slime init-lisp cl-lib-highlight auto-compile packed ipretty pp init-paredit init-sql init-rails rinari jump inflections findr ruby-compilation which-func imenu inf-ruby compile ruby-mode smie init-ruby-mode derived init-haskell init-python-mode init-haml init-css init-html init-nxml init-org ob-sqlite ob-sh shell ob-ruby ob-python ob-octave ob-ledger ob-latex ob-gnuplot ob-dot ob-ditaa ob-R org-clock org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint comint ansi-color ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs init-php init-javascript easy-mmode init-erlang erlang-start init-csv init-markdown init-textile init-crontab init-compile init-github init-git init-darcs init-vc init-editing-utils guide-key s ucs-normalize popwin dash highlight-escape-sequences whole-line-or-region page-break-lines paren undo-tree diff whitespace-cleanup-mode whitespace autorevert filenotify elec-pair init-mmm mmm-auto mmm-vars mmm-compat init-fonts init-sessions savehist desktop frameset init-windows windmove switch-window quail help-mode winner ring init-auto-complete auto-complete-config auto-complete popup init-hippie-expand init-ido ido-ubiquitous warnings ido init-recentf recentf tree-widget wid-edit init-flycheck init-ibuffer ibuf-macs init-uniquify init-grep init-isearch diminish anzu mule-util thingatpt init-dired init-proxies init-gui-frames init-osx-keys edmacro kmacro init-themes init-xterm init-frame-hooks init-exec-path exec-path-from-shell init-elpa fullframe finder-inf eieio byte-opt bytecomp byte-compile cl-extra seq cconv eieio-core cl-generic pcase rx cl-macs slime-autoloads info easymenu package epg-config init-site-lisp cl gv cl-loaddefs cl-lib init-utils init-compat init-benchmarking advice help-fns time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 2066523 297407) (symbols 48 78106 0) (miscs 40 11519 16113) (strings 32 449119 39379) (string-bytes 1 7884651) (vectors 16 107393) (vector-slots 8 2411374 20255) (floats 8 1294 3276) (intervals 56 115973 379) (buffers 976 176)) From unknown Sun Jun 15 08:51:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Mar 2015 20:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Steve Purcell Cc: 20231@debbugs.gnu.org Received: via spool by 20231-submit@debbugs.gnu.org id=B20231.142774910110280 (code B ref 20231); Mon, 30 Mar 2015 20:59:01 +0000 Received: (at 20231) by debbugs.gnu.org; 30 Mar 2015 20:58:21 +0000 Received: from localhost ([127.0.0.1]:40720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YcglJ-0002fk-6g for submit@debbugs.gnu.org; Mon, 30 Mar 2015 16:58:21 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:5855) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YcglG-0002fV-PB for 20231@debbugs.gnu.org; Mon, 30 Mar 2015 16:58:19 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnEFAGvvdVRBbthL/2dsb2JhbAA3gVOfQYIugQiBdgEFViMQCzQSFBgNJKokjCFKAgECAQKDPgMDg20EqDs X-IPAS-Result: AnEFAGvvdVRBbthL/2dsb2JhbAA3gVOfQYIugQiBdgEFViMQCzQSFBgNJKokjCFKAgECAQKDPgMDg20EqDs X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="114990154" Received: from 65-110-216-75.cpe.pppoe.ca (HELO fmsmemgm.homelinux.net) ([65.110.216.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 30 Mar 2015 16:58:13 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id EA236AE0BC; Mon, 30 Mar 2015 16:58:13 -0400 (EDT) From: Stefan Monnier Message-ID: References: Date: Mon, 30 Mar 2015 16:58:13 -0400 In-Reply-To: (Steve Purcell's message of "Mon, 30 Mar 2015 17:21:41 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > - package.el should dictate a standard encoding with which it will > `read' cached archive-contents data archive-contents should always use utf-8, yes. Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 30 18:19:13 2015 Received: (at control) by debbugs.gnu.org; 30 Mar 2015 22:19:13 +0000 Received: from localhost ([127.0.0.1]:40736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yci1Z-0004am-Et for submit@debbugs.gnu.org; Mon, 30 Mar 2015 18:19:13 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:49162 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yci1Y-0004af-6a for control@debbugs.gnu.org; Mon, 30 Mar 2015 18:19:12 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Yci1X-0008HC-He for control@debbugs.gnu.org; Mon, 30 Mar 2015 18:19:11 -0400 Date: Mon, 30 Mar 2015 18:19:11 -0400 Message-Id: Subject: control message for bug 20231 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) merge 20010 20231 From unknown Sun Jun 15 08:51:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Resent-From: Steve Purcell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Apr 2015 17:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier , 20231@debbugs.gnu.org Received: via spool by 20231-submit@debbugs.gnu.org id=B20231.142877210718722 (code B ref 20231); Sat, 11 Apr 2015 17:09:02 +0000 Received: (at 20231) by debbugs.gnu.org; 11 Apr 2015 17:08:27 +0000 Received: from localhost ([127.0.0.1]:53366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YgytO-0004rt-TZ for submit@debbugs.gnu.org; Sat, 11 Apr 2015 13:08:27 -0400 Received: from purcellpeople.com ([85.214.32.38]:33540 helo=h1189701.stratoserver.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YgytL-0004rd-Vw for 20231@debbugs.gnu.org; Sat, 11 Apr 2015 13:08:24 -0400 Received: from [192.168.1.103] (host31-48-107-253.range31-48.btcentralplus.com [31.48.107.253]) by h1189701.stratoserver.net (Postfix) with ESMTPSA id 3B85E82008A; Sat, 11 Apr 2015 19:08:16 +0200 (CEST) From: Steve Purcell Content-Type: multipart/mixed; boundary="Apple-Mail=_B24151CE-33EE-4BF4-9149-6DEAC27047B1" Message-Id: <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Date: Sat, 11 Apr 2015 18:08:16 +0100 References: <6343E9EC-9E23-4D44-9CD1-82C26DB7CDA3@sanityinc.com> In-Reply-To: X-Mailer: Apple Mail (2.2098) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --Apple-Mail=_B24151CE-33EE-4BF4-9149-6DEAC27047B1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii The attached patch seems reasonable and works nicely for me. Happy to = modify it if necessary. -Steve --Apple-Mail=_B24151CE-33EE-4BF4-9149-6DEAC27047B1 Content-Disposition: attachment; filename=archive-contents-encoding.patch Content-Type: application/octet-stream; name="archive-contents-encoding.patch" Content-Transfer-Encoding: 7bit 4dc1966abf44aff8baab2bf20a395260ea640428 HEAD master Author: Steve Purcell Date: Sat Apr 11 18:01:06 2015 +0100 Assume package archive-contents are UTF8-encoded * lisp/emacs-lisp/package.el (package--read-archive-file): Set `coding-system-for-read' explicitly to 'utf-8 when reading the downloaded and cached archive-contents files, so that non-ASCII characters in package descriptions are displayed correctly in the `list-packages' menu. (Bug #20231) 1 file changed, 7 insertions(+), 6 deletions(-) lisp/emacs-lisp/package.el | 13 +++++++------ Modified lisp/emacs-lisp/package.el diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 40d02f8..dadaf27 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -1279,12 +1279,13 @@ Will throw an error if the archive version is too new." (let ((filename (expand-file-name file package-user-dir))) (when (file-exists-p filename) (with-temp-buffer - (insert-file-contents-literally filename) - (let ((contents (read (current-buffer)))) - (if (> (car contents) package-archive-version) - (error "Package archive version %d is higher than %d" - (car contents) package-archive-version)) - (cdr contents)))))) + (let ((coding-system-for-read 'utf-8)) + (insert-file-contents filename) + (let ((contents (read (current-buffer)))) + (if (> (car contents) package-archive-version) + (error "Package archive version %d is higher than %d" + (car contents) package-archive-version)) + (cdr contents))))))) (defun package-read-archive-contents (archive) "Re-read archive contents for ARCHIVE. --Apple-Mail=_B24151CE-33EE-4BF4-9149-6DEAC27047B1-- From unknown Sun Jun 15 08:51:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Apr 2015 17:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Steve Purcell Cc: monnier@IRO.UMontreal.CA, 20231@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 20231-submit@debbugs.gnu.org id=B20231.142877411221901 (code B ref 20231); Sat, 11 Apr 2015 17:42:02 +0000 Received: (at 20231) by debbugs.gnu.org; 11 Apr 2015 17:41:52 +0000 Received: from localhost ([127.0.0.1]:53384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YgzPj-0005hA-6p for submit@debbugs.gnu.org; Sat, 11 Apr 2015 13:41:51 -0400 Received: from mtaout23.012.net.il ([80.179.55.175]:46322) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YgzPg-0005gv-2B for 20231@debbugs.gnu.org; Sat, 11 Apr 2015 13:41:49 -0400 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NMN00M00KQYG700@a-mtaout23.012.net.il> for 20231@debbugs.gnu.org; Sat, 11 Apr 2015 20:41:41 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMN00MZDL5HBF90@a-mtaout23.012.net.il>; Sat, 11 Apr 2015 20:41:41 +0300 (IDT) Date: Sat, 11 Apr 2015 20:41:44 +0300 From: Eli Zaretskii In-reply-to: <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> X-012-Sender: halo1@inter.net.il Message-id: <83pp7aef53.fsf@gnu.org> References: <6343E9EC-9E23-4D44-9CD1-82C26DB7CDA3@sanityinc.com> <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Steve Purcell > Date: Sat, 11 Apr 2015 18:08:16 +0100 > > + (let ((coding-system-for-read 'utf-8)) 'utf-8 or 'utf-8-unix? Or is that unimportant in this case? From unknown Sun Jun 15 08:51:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Apr 2015 18:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 20231@debbugs.gnu.org, Steve Purcell Received: via spool by 20231-submit@debbugs.gnu.org id=B20231.142877564824318 (code B ref 20231); Sat, 11 Apr 2015 18:08:02 +0000 Received: (at 20231) by debbugs.gnu.org; 11 Apr 2015 18:07:28 +0000 Received: from localhost ([127.0.0.1]:53395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YgzoV-0006K9-Lo for submit@debbugs.gnu.org; Sat, 11 Apr 2015 14:07:27 -0400 Received: from fely.am-1.org ([78.47.74.50]:38694) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YgzoS-0006Jz-AA for 20231@debbugs.gnu.org; Sat, 11 Apr 2015 14:07:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=xYuV1UMYHQ5xyHc5IvCnTcIp3XWYz12GH1QDDh/KT1U=; b=QvkAL327HgvrVDJHIBkceGh0lipHnbkXrteJXn8BzTbB32k+2VI8cplVG8NEHTlRAFcu9ZGhHfpvTnObYZE1FhcWO7NZlQ6iOVHdmIVt2bliPzfbwN3olz04xSPt3EJ1wvFlp/z4skEqNla7gCIsEMi3A0PXRHpHz4d9/AHuWio=; Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YgzoQ-0007rc-Gz; Sat, 11 Apr 2015 18:07:22 +0000 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YgzoJ-0000D2-D6; Sun, 12 Apr 2015 01:07:15 +0700 From: Ivan Shmakov References: <6343E9EC-9E23-4D44-9CD1-82C26DB7CDA3@sanityinc.com> <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> Mail-Followup-To: 20231@debbugs.gnu.org, Steve Purcell Date: Sat, 11 Apr 2015 18:07:13 +0000 In-Reply-To: <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> (Steve Purcell's message of "Sat, 11 Apr 2015 18:08:16 +0100") Message-ID: <878udysfn2.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) >>>>> Steve Purcell writes: > --- a/lisp/emacs-lisp/package.el > +++ b/lisp/emacs-lisp/package.el > @@ -1279,12 +1279,13 @@ defun package--read-archive-file (file) > (let ((filename (expand-file-name file package-user-dir))) > (when (file-exists-p filename) > (with-temp-buffer > - (insert-file-contents-literally filename) > - (let ((contents (read (current-buffer)))) > - (if (> (car contents) package-archive-version) > - (error "Package archive version %d is higher than %d" > - (car contents) package-archive-version)) > - (cdr contents)))))) > + (let ((coding-system-for-read 'utf-8)) > + (insert-file-contents filename) As insert-file-contents may imply a whole lot of additional processing beyond decoding UTF-8, I=E2=80=99d rather use an explicit decode-coding-region here, like (untested): (with-temp-buffer (insert-file-contents-literally filename) + (decode-coding-region (point-min) (point-max) 'utf-8) (let ((contents (read (current-buffer)))) =E2=80=A6)) > + (let ((contents (read (current-buffer)))) > + (if (> (car contents) package-archive-version) > + (error "Package archive version %d is higher than %d" > + (car contents) package-archive-version)) > + (cdr contents))))))) >=20 > (defun package-read-archive-contents (archive) > "Re-read archive contents for ARCHIVE. --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A From unknown Sun Jun 15 08:51:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Apr 2015 18:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ivan Shmakov Cc: steve@sanityinc.com, 20231@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 20231-submit@debbugs.gnu.org id=B20231.142877733926954 (code B ref 20231); Sat, 11 Apr 2015 18:36:02 +0000 Received: (at 20231) by debbugs.gnu.org; 11 Apr 2015 18:35:39 +0000 Received: from localhost ([127.0.0.1]:53399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yh0Fn-00070g-CJ for submit@debbugs.gnu.org; Sat, 11 Apr 2015 14:35:39 -0400 Received: from mtaout28.012.net.il ([80.179.55.184]:52970) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yh0Fk-00070S-Cy for 20231@debbugs.gnu.org; Sat, 11 Apr 2015 14:35:37 -0400 Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NMN00J00NEOA300@mtaout28.012.net.il> for 20231@debbugs.gnu.org; Sat, 11 Apr 2015 21:34:13 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMN00HVFNL1OU10@mtaout28.012.net.il>; Sat, 11 Apr 2015 21:34:13 +0300 (IDT) Date: Sat, 11 Apr 2015 21:35:33 +0300 From: Eli Zaretskii In-reply-to: <878udysfn2.fsf@violet.siamics.net> X-012-Sender: halo1@inter.net.il Message-id: <83mw2eecne.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <6343E9EC-9E23-4D44-9CD1-82C26DB7CDA3@sanityinc.com> <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> <878udysfn2.fsf@violet.siamics.net> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Ivan Shmakov > Date: Sat, 11 Apr 2015 18:07:13 +0000 > > >>>>> Steve Purcell writes: > > > --- a/lisp/emacs-lisp/package.el > > +++ b/lisp/emacs-lisp/package.el > > @@ -1279,12 +1279,13 @@ defun package--read-archive-file (file) > > (let ((filename (expand-file-name file package-user-dir))) > > (when (file-exists-p filename) > > (with-temp-buffer > > - (insert-file-contents-literally filename) > > - (let ((contents (read (current-buffer)))) > > - (if (> (car contents) package-archive-version) > > - (error "Package archive version %d is higher than %d" > > - (car contents) package-archive-version)) > > - (cdr contents)))))) > > + (let ((coding-system-for-read 'utf-8)) > > + (insert-file-contents filename) > > As insert-file-contents may imply a whole lot of additional > processing beyond decoding UTF-8, I’d rather use an explicit > decode-coding-region here Can you explain why? What additional processing can get in the way? From unknown Sun Jun 15 08:51:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Resent-From: Steve Purcell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Apr 2015 18:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: monnier@IRO.UMontreal.CA, 20231@debbugs.gnu.org Received: via spool by 20231-submit@debbugs.gnu.org id=B20231.142877814028205 (code B ref 20231); Sat, 11 Apr 2015 18:49:02 +0000 Received: (at 20231) by debbugs.gnu.org; 11 Apr 2015 18:49:00 +0000 Received: from localhost ([127.0.0.1]:53408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yh0Si-0007Kr-5A for submit@debbugs.gnu.org; Sat, 11 Apr 2015 14:49:00 -0400 Received: from purcellpeople.com ([85.214.32.38]:34291 helo=h1189701.stratoserver.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yh0Se-0007Ka-IY for 20231@debbugs.gnu.org; Sat, 11 Apr 2015 14:48:58 -0400 Received: from [192.168.1.103] (host31-48-107-253.range31-48.btcentralplus.com [31.48.107.253]) by h1189701.stratoserver.net (Postfix) with ESMTPSA id BF8DD82008A; Sat, 11 Apr 2015 20:48:49 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) From: Steve Purcell In-Reply-To: <83pp7aef53.fsf@gnu.org> Date: Sat, 11 Apr 2015 19:48:48 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <332EEC93-8D2B-43C0-AD16-6655DEEF56FA@sanityinc.com> References: <6343E9EC-9E23-4D44-9CD1-82C26DB7CDA3@sanityinc.com> <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> <83pp7aef53.fsf@gnu.org> X-Mailer: Apple Mail (2.2098) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On 11 Apr 2015, at 18:41, Eli Zaretskii wrote: >=20 > 'utf-8 or 'utf-8-unix? Or is that unimportant in this case? It=E2=80=99s not important in this case, but I suppose the latter would = make it even more explicit.= From unknown Sun Jun 15 08:51:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Apr 2015 18:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Steve Purcell Cc: monnier@IRO.UMontreal.CA, 20231@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 20231-submit@debbugs.gnu.org id=B20231.142877860228944 (code B ref 20231); Sat, 11 Apr 2015 18:57:02 +0000 Received: (at 20231) by debbugs.gnu.org; 11 Apr 2015 18:56:42 +0000 Received: from localhost ([127.0.0.1]:53415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yh0aA-0007Wm-6r for submit@debbugs.gnu.org; Sat, 11 Apr 2015 14:56:42 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:55876) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yh0a7-0007WT-8k for 20231@debbugs.gnu.org; Sat, 11 Apr 2015 14:56:40 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NMN00I00OJOIJ00@a-mtaout20.012.net.il> for 20231@debbugs.gnu.org; Sat, 11 Apr 2015 21:56:32 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMN00IUPOM8E350@a-mtaout20.012.net.il>; Sat, 11 Apr 2015 21:56:32 +0300 (IDT) Date: Sat, 11 Apr 2015 21:56:36 +0300 From: Eli Zaretskii In-reply-to: <332EEC93-8D2B-43C0-AD16-6655DEEF56FA@sanityinc.com> X-012-Sender: halo1@inter.net.il Message-id: <83lhhyebob.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <6343E9EC-9E23-4D44-9CD1-82C26DB7CDA3@sanityinc.com> <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> <83pp7aef53.fsf@gnu.org> <332EEC93-8D2B-43C0-AD16-6655DEEF56FA@sanityinc.com> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Steve Purcell > Date: Sat, 11 Apr 2015 19:48:48 +0100 > Cc: monnier@IRO.UMontreal.CA, > 20231@debbugs.gnu.org > > On 11 Apr 2015, at 18:41, Eli Zaretskii wrote: > > > > 'utf-8 or 'utf-8-unix? Or is that unimportant in this case? > > > It’s not important in this case, but I suppose the latter would make it even more explicit. -unix is also closer to the original, so I agree. From unknown Sun Jun 15 08:51:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Apr 2015 19:31:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 20231@debbugs.gnu.org, Steve Purcell Received: via spool by 20231-submit@debbugs.gnu.org id=B20231.142878064832197 (code B ref 20231); Sat, 11 Apr 2015 19:31:03 +0000 Received: (at 20231) by debbugs.gnu.org; 11 Apr 2015 19:30:48 +0000 Received: from localhost ([127.0.0.1]:53428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yh177-0008NE-Lk for submit@debbugs.gnu.org; Sat, 11 Apr 2015 15:30:46 -0400 Received: from fely.am-1.org ([78.47.74.50]:38707) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yh16w-0008Mr-1L for 20231@debbugs.gnu.org; Sat, 11 Apr 2015 15:30:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=rUKyF3rF/Uo8E14aAhCxW96d+e4waVIBOhIwRODKwuI=; b=BEtOO43f/PYCf1STDTwV2+Dcfi6U5yb16LkGGcJ6uG1yekdg2FsIKQOUZz8pSSw4NEVpK8zfHnsekCf78bPW55+KOeGZKkthM/0aVD7JDJ6k+fi985gArcDkRsvkUy3ij6+6CnfKu4jM+5sz7nYWVOADA9eGETPhyYye0IFvEWg=; Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Yh16s-0000LU-Lq; Sat, 11 Apr 2015 19:30:30 +0000 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Yh16k-0000e8-Ea; Sun, 12 Apr 2015 02:30:22 +0700 From: Ivan Shmakov References: <6343E9EC-9E23-4D44-9CD1-82C26DB7CDA3@sanityinc.com> <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> <878udysfn2.fsf@violet.siamics.net> <83mw2eecne.fsf@gnu.org> Mail-Followup-To: 20231@debbugs.gnu.org, Steve Purcell Date: Sat, 11 Apr 2015 19:30:21 +0000 In-Reply-To: <83mw2eecne.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 11 Apr 2015 21:35:33 +0300") Message-ID: <874momsbsi.fsf_-_@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) >>>>> Eli Zaretskii writes: [=E2=80=A6] >> As insert-file-contents may imply a whole lot of additional >> processing beyond decoding UTF-8, I=E2=80=99d rather use an explicit >> decode-coding-region here > Can you explain why? What additional processing can get in the way? One of the examples I can readily think of is enriched-decode, which will automatically be called should there be a =E2=80=98Content-Type: text/enriched=E2=80=99 line near the top of the file being read (per format-alist.) I have no example at hand of how such processing may be triggered in practice, but avoiding it altogether seems to me like a saner approach. --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A From unknown Sun Jun 15 08:51:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Apr 2015 19:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ivan Shmakov Cc: steve@sanityinc.com, 20231@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 20231-submit@debbugs.gnu.org id=B20231.14287816991429 (code B ref 20231); Sat, 11 Apr 2015 19:49:02 +0000 Received: (at 20231) by debbugs.gnu.org; 11 Apr 2015 19:48:19 +0000 Received: from localhost ([127.0.0.1]:53439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yh1O6-0000Mz-Ku for submit@debbugs.gnu.org; Sat, 11 Apr 2015 15:48:18 -0400 Received: from mtaout24.012.net.il ([80.179.55.180]:34905) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yh1O4-0000Mk-I7 for 20231@debbugs.gnu.org; Sat, 11 Apr 2015 15:48:17 -0400 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NMN00000QIRJH00@mtaout24.012.net.il> for 20231@debbugs.gnu.org; Sat, 11 Apr 2015 22:39:35 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMN00I3UQLZ0B70@mtaout24.012.net.il>; Sat, 11 Apr 2015 22:39:35 +0300 (IDT) Date: Sat, 11 Apr 2015 22:48:14 +0300 From: Eli Zaretskii In-reply-to: <874momsbsi.fsf_-_@violet.siamics.net> X-012-Sender: halo1@inter.net.il Message-id: <83egnqe9a9.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <6343E9EC-9E23-4D44-9CD1-82C26DB7CDA3@sanityinc.com> <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> <878udysfn2.fsf@violet.siamics.net> <83mw2eecne.fsf@gnu.org> <874momsbsi.fsf_-_@violet.siamics.net> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Ivan Shmakov > Date: Sat, 11 Apr 2015 19:30:21 +0000 > > >>>>> Eli Zaretskii writes: > > […] > > >> As insert-file-contents may imply a whole lot of additional > >> processing beyond decoding UTF-8, I’d rather use an explicit > >> decode-coding-region here > > > Can you explain why? What additional processing can get in the way? > > One of the examples I can readily think of is enriched-decode, > which will automatically be called should there be a > ‘Content-Type: text/enriched’ line near the top of the file > being read (per format-alist.) Yes, but is that kind of processing harmful for the case at point? Also, are we sure we will never get a compressed file, for example, or some other binary file? In those cases, decoding is not TRT. > I have no example at hand of how such processing may be > triggered in practice, but avoiding it altogether seems to me > like a saner approach. It is also slower. Again, I have no idea if speed matters in this case. From unknown Sun Jun 15 08:51:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Apr 2015 12:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: steve@sanityinc.com, Ivan Shmakov , 20231@debbugs.gnu.org Reply-To: bruce.connor.am@gmail.com Received: via spool by 20231-submit@debbugs.gnu.org id=B20231.14289282914180 (code B ref 20231); Mon, 13 Apr 2015 12:32:02 +0000 Received: (at 20231) by debbugs.gnu.org; 13 Apr 2015 12:31:31 +0000 Received: from localhost ([127.0.0.1]:54855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YhdWU-00015L-2Q for submit@debbugs.gnu.org; Mon, 13 Apr 2015 08:31:30 -0400 Received: from mail-la0-f41.google.com ([209.85.215.41]:35873) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YhdWS-000156-6C for 20231@debbugs.gnu.org; Mon, 13 Apr 2015 08:31:28 -0400 Received: by lagv1 with SMTP id v1so55724279lag.3 for <20231@debbugs.gnu.org>; Mon, 13 Apr 2015 05:31:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=zx2xxIXLyIaQRk1ld8pIMcbMQ1zAb/i3BLRCA/m7gcc=; b=XXm9vXT4MjDzxubWKnTSJBkEMMXx0sUH8tCPGpszjZgtjaFJltDb+RMFG8hy4i9PT4 TcW0mKASpvTP3T1uUIU4Fy6CKO9Xcp5FKqmUw9Hgp9Oib7gikjJCqVTCkZsHyOgZI9+R WGcOUJVPd4jHz6cIzWmRy39/4GPal2wxdIeS6e9IJc69L/Dk/IGAvwJlZFohL8th5oIx OwEIh6wATome857Q6R+j9dFrMPTiXkb1aeh2ph8DcHElvkr9xda5q7D3ncl6awGyVWri PwHxlX0i7m4SUR4R/CilLwDTzN22mqdW1oRyE457ok0gzVARd2RT/sbYjTPWqmu2Yeg/ ntUg== MIME-Version: 1.0 X-Received: by 10.112.222.133 with SMTP id qm5mr13132600lbc.86.1428928282267; Mon, 13 Apr 2015 05:31:22 -0700 (PDT) Received: by 10.25.150.131 with HTTP; Mon, 13 Apr 2015 05:31:22 -0700 (PDT) In-Reply-To: <83egnqe9a9.fsf@gnu.org> References: <6343E9EC-9E23-4D44-9CD1-82C26DB7CDA3@sanityinc.com> <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> <878udysfn2.fsf@violet.siamics.net> <83mw2eecne.fsf@gnu.org> <874momsbsi.fsf_-_@violet.siamics.net> <83egnqe9a9.fsf@gnu.org> Date: Mon, 13 Apr 2015 13:31:22 +0100 X-Google-Sender-Auth: boq4fYNp0L12NQQRQYh9zRet-Co Message-ID: From: Artur Malabarba Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) >> I have no example at hand of how such processing may be >> triggered in practice, but avoiding it altogether seems to me >> like a saner approach. > > It is also slower. Again, I have no idea if speed matters in this > case. I vote for the fastest approach. Now that package-refresh can be done in the background, any post-processing done in the foreground is all the more noticeable by the user. From unknown Sun Jun 15 08:51:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Apr 2015 14:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Artur Malabarba Cc: steve@sanityinc.com, Eli Zaretskii , Ivan Shmakov , 20231@debbugs.gnu.org Received: via spool by 20231-submit@debbugs.gnu.org id=B20231.142893381613040 (code B ref 20231); Mon, 13 Apr 2015 14:04:02 +0000 Received: (at 20231) by debbugs.gnu.org; 13 Apr 2015 14:03:36 +0000 Received: from localhost ([127.0.0.1]:55073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YhexX-0003OC-Nc for submit@debbugs.gnu.org; Mon, 13 Apr 2015 10:03:36 -0400 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:39612) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YhexS-0003Nz-Ge for 20231@debbugs.gnu.org; Mon, 13 Apr 2015 10:03:31 -0400 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 1C1D45CE1B; Mon, 13 Apr 2015 10:03:24 -0400 (EDT) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id CBCE31E5B99; Mon, 13 Apr 2015 10:02:59 -0400 (EDT) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id A8C48B4122; Mon, 13 Apr 2015 10:02:59 -0400 (EDT) From: Stefan Monnier Message-ID: References: <6343E9EC-9E23-4D44-9CD1-82C26DB7CDA3@sanityinc.com> <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> <878udysfn2.fsf@violet.siamics.net> <83mw2eecne.fsf@gnu.org> <874momsbsi.fsf_-_@violet.siamics.net> <83egnqe9a9.fsf@gnu.org> Date: Mon, 13 Apr 2015 10:02:59 -0400 In-Reply-To: (Artur Malabarba's message of "Mon, 13 Apr 2015 13:31:22 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) >> It is also slower. Again, I have no idea if speed matters in this >> case. > I vote for the fastest approach. Now that package-refresh can be done > in the background, any post-processing done in the foreground is all > the more noticeable by the user. Either way is fine by me. Just one detail, tho: if you let-bind coding-system-for-read, please only do it around the call to insert-file-contents and not around the subsequent code (even if it's short and seems not to matter). Stefan From unknown Sun Jun 15 08:51:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Resent-From: Steve Purcell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Apr 2015 20:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier , Artur Malabarba , Eli Zaretskii , Ivan Shmakov , 20231@debbugs.gnu.org Received: via spool by 20231-submit@debbugs.gnu.org id=B20231.142895793318307 (code B ref 20231); Mon, 13 Apr 2015 20:46:02 +0000 Received: (at 20231) by debbugs.gnu.org; 13 Apr 2015 20:45:33 +0000 Received: from localhost ([127.0.0.1]:55234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YhlEa-0004lC-6S for submit@debbugs.gnu.org; Mon, 13 Apr 2015 16:45:32 -0400 Received: from purcellpeople.com ([85.214.32.38]:56901 helo=h1189701.stratoserver.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YhlEX-0004kw-8c for 20231@debbugs.gnu.org; Mon, 13 Apr 2015 16:45:30 -0400 Received: from [192.168.1.103] (host31-48-107-253.range31-48.btcentralplus.com [31.48.107.253]) by h1189701.stratoserver.net (Postfix) with ESMTPSA id 1D2958201D3; Mon, 13 Apr 2015 22:45:19 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) From: Steve Purcell In-Reply-To: Date: Mon, 13 Apr 2015 21:45:18 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <80D6D15A-8911-4460-A516-1D22B5B656C2@sanityinc.com> References: <6343E9EC-9E23-4D44-9CD1-82C26DB7CDA3@sanityinc.com> <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> <878udysfn2.fsf@violet.siamics.net> <83mw2eecne.fsf@gnu.org> <874momsbsi.fsf_-_@violet.siamics.net> <83egnqe9a9.fsf@gnu.org> X-Mailer: Apple Mail (2.2098) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On 13 Apr 2015, at 15:02, Stefan Monnier = wrote: >=20 >>> It is also slower. Again, I have no idea if speed matters in this >>> case. >> I vote for the fastest approach. Now that package-refresh can be done >> in the background, any post-processing done in the foreground is all >> the more noticeable by the user. >=20 > Either way is fine by me. Just one detail, tho: if you let-bind > coding-system-for-read, please only do it around the call to > insert-file-contents and not around the subsequent code (even if it's > short and seems not to matter). Not sure at this stage who=E2=80=99s going to do this, and what the = consensus is for how it should be done. It=E2=80=99s probably quickest = if someone who has an opinion about the best fix just goes ahead and = commits whatever variation of my patch is considered optimal.= From unknown Sun Jun 15 08:51:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Apr 2015 15:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Steve Purcell Cc: Eli Zaretskii , Stefan Monnier , Ivan Shmakov , 20231@debbugs.gnu.org Reply-To: bruce.connor.am@gmail.com Received: via spool by 20231-submit@debbugs.gnu.org id=B20231.142945691428941 (code B ref 20231); Sun, 19 Apr 2015 15:22:02 +0000 Received: (at 20231) by debbugs.gnu.org; 19 Apr 2015 15:21:54 +0000 Received: from localhost ([127.0.0.1]:60810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yjr2g-0007Wj-A4 for submit@debbugs.gnu.org; Sun, 19 Apr 2015 11:21:54 -0400 Received: from mail-lb0-f172.google.com ([209.85.217.172]:35996) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yjr2e-0007WV-3b for 20231@debbugs.gnu.org; Sun, 19 Apr 2015 11:21:52 -0400 Received: by lbbqq2 with SMTP id qq2so113734555lbb.3 for <20231@debbugs.gnu.org>; Sun, 19 Apr 2015 08:21:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=pZMFvTkt55IWbmGVtbSgw/7/mvHFN8kfP2E4CtLvd2s=; b=uCtDdQsLDrIvA334NwJrUO44SKMqr2V6mPOH9Q0NprlEWcZYs5lstOl9x44fbBgEaw 7zPn9kUeqeKrr+EvzVHxgztdpQ327emm1s6SWLsd41+UcrvcOWkRliT7yhC8gYgWxqWV BRFrfblAGj+qeZJuczjztmG6ZkUbDU64XhmRwANcuFeT+HxEudTfKuzFCHIgrUyWWjIZ gnDlKrVv3yhDrm0VBdpNAJYctPs2iptq6cN11uNC9FH+RW23zketkfgKKeA1UW0mlIHs 05K7U7qCFUG+1N14rG5fS1WsuYMvpFFpAKeWH25drALhwmu8UuRQdFDCBFBj1X3tcjaH CFBA== MIME-Version: 1.0 X-Received: by 10.112.125.138 with SMTP id mq10mr12313326lbb.35.1429456906198; Sun, 19 Apr 2015 08:21:46 -0700 (PDT) Received: by 10.25.150.1 with HTTP; Sun, 19 Apr 2015 08:21:46 -0700 (PDT) In-Reply-To: <80D6D15A-8911-4460-A516-1D22B5B656C2@sanityinc.com> References: <6343E9EC-9E23-4D44-9CD1-82C26DB7CDA3@sanityinc.com> <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> <878udysfn2.fsf@violet.siamics.net> <83mw2eecne.fsf@gnu.org> <874momsbsi.fsf_-_@violet.siamics.net> <83egnqe9a9.fsf@gnu.org> <80D6D15A-8911-4460-A516-1D22B5B656C2@sanityinc.com> Date: Sun, 19 Apr 2015 16:21:46 +0100 X-Google-Sender-Auth: 9bGBOQ1Nt4kC8Ayq7j0QqZN7zpI Message-ID: From: Artur Malabarba Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) I can do it. Is the copyright cleared or do I mark this as a tiny change? 2015-04-13 21:45 GMT+01:00 Steve Purcell : > On 13 Apr 2015, at 15:02, Stefan Monnier wrote= : >> >>>> It is also slower. Again, I have no idea if speed matters in this >>>> case. >>> I vote for the fastest approach. Now that package-refresh can be done >>> in the background, any post-processing done in the foreground is all >>> the more noticeable by the user. >> >> Either way is fine by me. Just one detail, tho: if you let-bind >> coding-system-for-read, please only do it around the call to >> insert-file-contents and not around the subsequent code (even if it's >> short and seems not to matter). > > > Not sure at this stage who=E2=80=99s going to do this, and what the conse= nsus is for how it should be done. It=E2=80=99s probably quickest if someon= e who has an opinion about the best fix just goes ahead and commits whateve= r variation of my patch is considered optimal. From unknown Sun Jun 15 08:51:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Resent-From: Steve Purcell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Apr 2015 15:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Artur Malabarba , 20231@debbugs.gnu.org Received: via spool by 20231-submit@debbugs.gnu.org id=B20231.142945700729162 (code B ref 20231); Sun, 19 Apr 2015 15:24:01 +0000 Received: (at 20231) by debbugs.gnu.org; 19 Apr 2015 15:23:27 +0000 Received: from localhost ([127.0.0.1]:60814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yjr4A-0007aH-Os for submit@debbugs.gnu.org; Sun, 19 Apr 2015 11:23:27 -0400 Received: from purcellpeople.com ([85.214.32.38]:37714 helo=h1189701.stratoserver.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yjr48-0007a3-B4 for 20231@debbugs.gnu.org; Sun, 19 Apr 2015 11:23:25 -0400 Received: from [192.168.1.103] (host86-153-255-94.range86-153.btcentralplus.com [86.153.255.94]) by h1189701.stratoserver.net (Postfix) with ESMTPSA id BA8E282008E; Sun, 19 Apr 2015 17:23:16 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) From: Steve Purcell In-Reply-To: Date: Sun, 19 Apr 2015 16:23:15 +0100 Content-Transfer-Encoding: 7bit Message-Id: <870A29FE-0E15-498C-BB2C-66C470725708@sanityinc.com> References: <6343E9EC-9E23-4D44-9CD1-82C26DB7CDA3@sanityinc.com> <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> <878udysfn2.fsf@violet.siamics.net> <83mw2eecne.fsf@gnu.org> <874momsbsi.fsf_-_@violet.siamics.net> <83egnqe9a9.fsf@gnu.org> <80D6D15A-8911-4460-A516-1D22B5B656C2@sanityinc.com> X-Mailer: Apple Mail (2.2098) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) I have a confirmed copyright assignment on file for Emacs. From unknown Sun Jun 15 08:51:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Apr 2015 16:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Steve Purcell Cc: bruce.connor.am@gmail.com, 20231@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 20231-submit@debbugs.gnu.org id=B20231.14294617093652 (code B ref 20231); Sun, 19 Apr 2015 16:42:02 +0000 Received: (at 20231) by debbugs.gnu.org; 19 Apr 2015 16:41:49 +0000 Received: from localhost ([127.0.0.1]:60831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YjsI1-0000wp-1e for submit@debbugs.gnu.org; Sun, 19 Apr 2015 12:41:49 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:62767) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YjsHx-0000wU-S3 for 20231@debbugs.gnu.org; Sun, 19 Apr 2015 12:41:47 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NN200100BHTFZ00@a-mtaout22.012.net.il> for 20231@debbugs.gnu.org; Sun, 19 Apr 2015 19:40:57 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NN2001T1BO35N70@a-mtaout22.012.net.il>; Sun, 19 Apr 2015 19:40:51 +0300 (IDT) Date: Sun, 19 Apr 2015 19:40:42 +0300 From: Eli Zaretskii In-reply-to: <870A29FE-0E15-498C-BB2C-66C470725708@sanityinc.com> X-012-Sender: halo1@inter.net.il Message-id: <83vbgs5awl.fsf@gnu.org> References: <6343E9EC-9E23-4D44-9CD1-82C26DB7CDA3@sanityinc.com> <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> <878udysfn2.fsf@violet.siamics.net> <83mw2eecne.fsf@gnu.org> <874momsbsi.fsf_-_@violet.siamics.net> <83egnqe9a9.fsf@gnu.org> <80D6D15A-8911-4460-A516-1D22B5B656C2@sanityinc.com> <870A29FE-0E15-498C-BB2C-66C470725708@sanityinc.com> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Steve Purcell > Date: Sun, 19 Apr 2015 16:23:15 +0100 > > I have a confirmed copyright assignment on file for Emacs. Indeed, I see it on file. From unknown Sun Jun 15 08:51:20 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Steve Purcell Subject: bug#20231: closed (Re: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data) Message-ID: References: X-Gnu-PR-Message: they-closed 20231 X-Gnu-PR-Package: emacs Reply-To: 20231@debbugs.gnu.org Date: Sun, 19 Apr 2015 17:03:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1429462982-5657-1" This is a multi-part message in MIME format... ------------=_1429462982-5657-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #20231: 25.0.50; package.el mangles non-ascii content in downloaded archive= -contents data which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 20231@debbugs.gnu.org. --=20 20231: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20231 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1429462982-5657-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 20231-done) by debbugs.gnu.org; 19 Apr 2015 17:02:02 +0000 Received: from localhost ([127.0.0.1]:60848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yjsba-0001Rr-2b for submit@debbugs.gnu.org; Sun, 19 Apr 2015 13:02:02 -0400 Received: from mail-la0-f46.google.com ([209.85.215.46]:34684) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YjsbY-0001RY-Ov for 20231-done@debbugs.gnu.org; Sun, 19 Apr 2015 13:02:01 -0400 Received: by laat2 with SMTP id t2so111402036laa.1 for <20231-done@debbugs.gnu.org>; Sun, 19 Apr 2015 10:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:cc:content-type; bh=A1g1Vw9FtQKpKnY2LORsLdmO4xHwIYeOnqcv87rtlms=; b=AST8sOUUC8HKcOXvuz4S4wr2xoqape9NmijdsL8sk4Revwetve4tFaaZ/wn0rU1ZDj GCEuzFAhOxGBuc9p1/XF2mSLmqmj7IV94Etrd67S6y6UC/2VAU0u5Q47y/z7OeZ/5cy/ Iuq2ovS7ISJDqx6MQe3pzxfR/B/AH712Gki1SoMVrg2BDw2HwDtkhUqgNfplPKMR7/Og qL/dnRZcWFx7jA/CaJGney9r2V7PMYBqLFOddJgVB76CyquCpPMEPICJJvFoimdDpNuk FE3HM2ZFN93tQRtV9KECiJ66HNvOwnf95vLXIdfzV9qqMQ0gMF+HJcDNThZYUr33WUFJ EPcQ== MIME-Version: 1.0 X-Received: by 10.152.22.229 with SMTP id h5mr12381538laf.21.1429462914810; Sun, 19 Apr 2015 10:01:54 -0700 (PDT) Received: by 10.25.150.1 with HTTP; Sun, 19 Apr 2015 10:01:54 -0700 (PDT) In-Reply-To: <870A29FE-0E15-498C-BB2C-66C470725708@sanityinc.com> References: <6343E9EC-9E23-4D44-9CD1-82C26DB7CDA3@sanityinc.com> <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> <878udysfn2.fsf@violet.siamics.net> <83mw2eecne.fsf@gnu.org> <874momsbsi.fsf_-_@violet.siamics.net> <83egnqe9a9.fsf@gnu.org> <80D6D15A-8911-4460-A516-1D22B5B656C2@sanityinc.com> <870A29FE-0E15-498C-BB2C-66C470725708@sanityinc.com> Date: Sun, 19 Apr 2015 18:01:54 +0100 X-Google-Sender-Auth: _equtMrXMzdoDMrm_fpevWLBa_g Message-ID: Subject: Re: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data From: Artur Malabarba Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 3.3 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Done. [...] Content analysis details: (3.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (bruce.connor.am[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.46 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 1.2 MISSING_HEADERS Missing To: header 2.8 MALFORMED_FREEMAIL Bad headers on message from free email service 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: 20231-done Cc: 20231-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: bruce.connor.am@gmail.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 3.3 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Done. [...] Content analysis details: (3.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (bruce.connor.am[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.46 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 1.2 MISSING_HEADERS Missing To: header 2.8 MALFORMED_FREEMAIL Bad headers on message from free email service 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid Done. ------------=_1429462982-5657-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 30 Mar 2015 16:22:06 +0000 Received: from localhost ([127.0.0.1]:40632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YccRx-0004LD-3P for submit@debbugs.gnu.org; Mon, 30 Mar 2015 12:22:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33572) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YccRt-0004Kh-VW for submit@debbugs.gnu.org; Mon, 30 Mar 2015 12:22:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YccRm-00051Y-TA for submit@debbugs.gnu.org; Mon, 30 Mar 2015 12:21:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YccRm-00051P-PM for submit@debbugs.gnu.org; Mon, 30 Mar 2015 12:21:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YccRk-00087H-Ox for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2015 12:21:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YccRe-0004xn-GC for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2015 12:21:52 -0400 Received: from purcellpeople.com ([85.214.32.38]:39526 helo=h1189701.stratoserver.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YccRe-0004x3-7m for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2015 12:21:46 -0400 Received: from Mandala.local (unknown [88.202.175.31]) by h1189701.stratoserver.net (Postfix) with ESMTPSA id D3F218200CB for ; Mon, 30 Mar 2015 18:21:43 +0200 (CEST) From: Steve Purcell To: bug-gnu-emacs@gnu.org Subject: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Date: Mon, 30 Mar 2015 17:21:41 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Some packages in MELPA have Chinese characters in their descriptions. These characters are displayed as numeric backslash escapes in the *packages* buffer. (See https://github.com/milkypostman/melpa/issues/2313.) A specific example is the helm-zhihu-daily package. The archive-contents MELPA provides is served with a utf-8 Content-Type header which is consistent with the encoding of the data within it: http://melpa.org/packages/archive-contents I see that `package--read-archive-file' uses `insert-file-literally': changing this to `insert-file' fixes the problem for me, but this is probably only because I have my defaut local encoding set to utf-8. What seems to be needed, then, is one or more of the following, in roughly decreasing order of preference: - package.el should note the Content-Type received with archive-contents data so that it can be used when applied the locally-cached version, or store the cached version on disk in a uniform encoding - archive maintainers should be able to insert a "-*- coding: ... -*-" local variable or similar marker in their archive-contents in order to declare its encoding - package.el should dictate a standard encoding with which it will `read' cached archive-contents data The second option doesn't appear to work currently. I had a cursory look for package descriptions containing non-ascii chars in ELPA and Marmalade, but didn't find any. However, I don't see that this issue would be specific to any single archive. Happy to help get this fixed if we can agree on an approach. And obviously if I've missed an approach that would reliably work with existing package.el versions, that would be even better. -Steve In GNU Emacs 25.0.50.2 (x86_64-apple-darwin14.1.0, NS appkit-1344.72 Version 10.10.2 (Build 14C109)) of 2015-02-19 on Mandala.local Repository revision: d4ed798d2598a914b1313e58acaff5b66c487318 Windowing system distributor `Apple', version 10.3.1344 Configured using: `configure --with-ns --without-dbus --without-x CFLAGS=-g' Configured features: IMAGEMAGICK ACL LIBXML2 ZLIB Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US locale-coding-system: utf-8 Major mode: Emacs-Lisp Minor modes in effect: checkdoc-minor-mode: t global-magit-wip-save-mode: t magit-wip-save-mode: t magit-auto-revert-mode: t global-flycheck-mode: t flycheck-mode: t redshank-mode: t aggressive-indent-mode: t rainbow-delimiters-mode: t elisp-slime-nav-mode: t highlight-quoted-mode: t highlight-symbol-nav-mode: t highlight-symbol-mode: t diff-hl-mode: t diff-auto-refine-mode: t bug-reference-prog-mode: t paredit-mode: t goto-address-prog-mode: t auto-insert-mode: t auto-compile-on-load-mode: t auto-compile-on-save-mode: t auto-compile-mode: t ipretty-mode: t global-rinari-mode: t shell-dirtrack-mode: t guide-key-mode: t hes-mode: t global-page-break-lines-mode: t page-break-lines-mode: t show-paren-mode: t global-undo-tree-mode: t undo-tree-mode: t global-whitespace-cleanup-mode: t whitespace-cleanup-mode: t global-auto-revert-mode: t electric-pair-mode: t savehist-mode: t desktop-save-mode: t winner-mode: t global-auto-complete-mode: t auto-complete-mode: t ido-ubiquitous-mode: t ido-everywhere: t recentf-mode: t global-anzu-mode: t anzu-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t global-prettify-symbols-mode: t prettify-symbols-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Recent messages: Mark set package--read-archive-file Evaluating... Mark set See buffer *Pp Eval Output*. Mark set Saving file /Users/steve/.emacs.d/elpa/archives/melpa/archive-contents... Wrote /Users/steve/.emacs.d/elpa/archives/melpa/archive-contents Evaluating... See buffer *Pp Eval Output*. Features: (shadow sort mail-extr emacsbug sendmail sanityinc-tomorrow-night-theme cal-move cal-iso diary-lib diary-loaddefs calc-aent calc-yank calc-misc calc-bin calc-alg calc-ext calc-menu calc calc-loaddefs calc-macs default-text-scale ac-inf-ruby parse-time sql-indent sql yaml-mode eieio-opt speedbar sb-image ezimage dframe checkdoc org-capture tramp-sh cider-debug cider-repl apropos sh-script let-alist ert helm-imenu semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet async-bytecomp async helm-aliases helm-elisp helm-eval helm-mode helm-files ffap helm-buffers helm-tags helm-bookmark helm-locate helm-help helm-org helm-grep helm-regexp helm-elscreen helm-adaptive helm-info helm-match-plugin helm-plugin bookmark helm-external helm-net browse-url helm-utils helm helm-source eieio-compat tar-mode names edebug autoload mm-archive network-stream nsm starttls url-cache url-handlers smerge-mode magit-svn magit-wip magit-key-mode magit grep epa epg git-rebase-mode git-commit-mode log-edit message rfc822 mml mml-sec mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log rainbow-mode color view debug mc-mark-more multiple-cursors-core rect hippie-exp align move-dup misearch multi-isearch executable org-agenda haskell-doc inf-haskell haskell-decl-scan sanityinc-tomorrow-bright-theme smex haml-mode js textile-mode css-mode js2-imenu-extras js2-mode markdown-mode robe url-http tls url-auth url-gw url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf mailcap cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs face-remap tidy mmm-erb mmm-region mmm-utils tagedit sgml-mode nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok cider-mode cider-eldoc cider-interaction arc-mode archive-mode cider-doc org-table cider-test cider-stacktrace package-build mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs diff-hl-dired ruler-mode tabify hexl cap-words superword subword ac-haskell-process haskell haskell-load haskell-commands highlight-uses-mode haskell-modules haskell-sandbox haskell-repl haskell-debug haskell-interactive-mode haskell-presentation-mode haskell-font-lock haskell-show haskell-collapse haskell-navigate-imports haskell-compile haskell-process haskell-session url-util haskell-indentation hl-line flycheck-haskell haskell-cabal haskell-utils haskell-mode haskell-string haskell-sort-imports haskell-align-imports haskell-compat haskell-complete-module dabbrev haskell-customize org-element org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view image-mode dired-sort dired+ image-dired image-file dired-x dired-aux dired org-bibtex bibtex org-bbdb org-w3m disp-table vc-git vc-darcs xml flycheck-ledger flycheck-clojure url-parse url-vars json cider-client nrepl-client tramp tramp-compat auth-source gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver queue cider-util clojure-mode flycheck-package lisp-mnt flycheck-hdevtools flycheck subr-x flymake redshank skeleton aggressive-indent rainbow-delimiters elisp-slime-nav etags xref highlight-quoted highlight-symbol diff-hl vc-dir ewoc vc vc-dispatcher diff-mode bug-reference paredit-everywhere paredit goto-addr init init-locales init-local session sanityinc-tomorrow-eighties-theme color-theme-sanityinc-tomorrow autoinsert cus-start cus-load server jka-compr init-ledger init-twitter init-dash init-misc init-common-lisp init-clojure-cider init-clojure init-slime init-lisp cl-lib-highlight auto-compile packed ipretty pp init-paredit init-sql init-rails rinari jump inflections findr ruby-compilation which-func imenu inf-ruby compile ruby-mode smie init-ruby-mode derived init-haskell init-python-mode init-haml init-css init-html init-nxml init-org ob-sqlite ob-sh shell ob-ruby ob-python ob-octave ob-ledger ob-latex ob-gnuplot ob-dot ob-ditaa ob-R org-clock org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint comint ansi-color ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs init-php init-javascript easy-mmode init-erlang erlang-start init-csv init-markdown init-textile init-crontab init-compile init-github init-git init-darcs init-vc init-editing-utils guide-key s ucs-normalize popwin dash highlight-escape-sequences whole-line-or-region page-break-lines paren undo-tree diff whitespace-cleanup-mode whitespace autorevert filenotify elec-pair init-mmm mmm-auto mmm-vars mmm-compat init-fonts init-sessions savehist desktop frameset init-windows windmove switch-window quail help-mode winner ring init-auto-complete auto-complete-config auto-complete popup init-hippie-expand init-ido ido-ubiquitous warnings ido init-recentf recentf tree-widget wid-edit init-flycheck init-ibuffer ibuf-macs init-uniquify init-grep init-isearch diminish anzu mule-util thingatpt init-dired init-proxies init-gui-frames init-osx-keys edmacro kmacro init-themes init-xterm init-frame-hooks init-exec-path exec-path-from-shell init-elpa fullframe finder-inf eieio byte-opt bytecomp byte-compile cl-extra seq cconv eieio-core cl-generic pcase rx cl-macs slime-autoloads info easymenu package epg-config init-site-lisp cl gv cl-loaddefs cl-lib init-utils init-compat init-benchmarking advice help-fns time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 2066523 297407) (symbols 48 78106 0) (miscs 40 11519 16113) (strings 32 449119 39379) (string-bytes 1 7884651) (vectors 16 107393) (vector-slots 8 2411374 20255) (floats 8 1294 3276) (intervals 56 115973 379) (buffers 976 176)) ------------=_1429462982-5657-1-- From unknown Sun Jun 15 08:51:20 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: =?UTF-8?Q?Jo=C3=A3o?= Guerra Subject: bug#20010: closed (Re: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data) Message-ID: References: X-Gnu-PR-Message: they-closed 20010 X-Gnu-PR-Package: emacs Reply-To: 20010@debbugs.gnu.org Date: Sun, 19 Apr 2015 17:03:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1429462983-5657-3" This is a multi-part message in MIME format... ------------=_1429462983-5657-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #20231: 24.4; Issue with Unicode characters in package description which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 20010@debbugs.gnu.org. --=20 20231: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20231 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1429462983-5657-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 20231-done) by debbugs.gnu.org; 19 Apr 2015 17:02:02 +0000 Received: from localhost ([127.0.0.1]:60848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yjsba-0001Rr-2b for submit@debbugs.gnu.org; Sun, 19 Apr 2015 13:02:02 -0400 Received: from mail-la0-f46.google.com ([209.85.215.46]:34684) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YjsbY-0001RY-Ov for 20231-done@debbugs.gnu.org; Sun, 19 Apr 2015 13:02:01 -0400 Received: by laat2 with SMTP id t2so111402036laa.1 for <20231-done@debbugs.gnu.org>; Sun, 19 Apr 2015 10:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:cc:content-type; bh=A1g1Vw9FtQKpKnY2LORsLdmO4xHwIYeOnqcv87rtlms=; b=AST8sOUUC8HKcOXvuz4S4wr2xoqape9NmijdsL8sk4Revwetve4tFaaZ/wn0rU1ZDj GCEuzFAhOxGBuc9p1/XF2mSLmqmj7IV94Etrd67S6y6UC/2VAU0u5Q47y/z7OeZ/5cy/ Iuq2ovS7ISJDqx6MQe3pzxfR/B/AH712Gki1SoMVrg2BDw2HwDtkhUqgNfplPKMR7/Og qL/dnRZcWFx7jA/CaJGney9r2V7PMYBqLFOddJgVB76CyquCpPMEPICJJvFoimdDpNuk FE3HM2ZFN93tQRtV9KECiJ66HNvOwnf95vLXIdfzV9qqMQ0gMF+HJcDNThZYUr33WUFJ EPcQ== MIME-Version: 1.0 X-Received: by 10.152.22.229 with SMTP id h5mr12381538laf.21.1429462914810; Sun, 19 Apr 2015 10:01:54 -0700 (PDT) Received: by 10.25.150.1 with HTTP; Sun, 19 Apr 2015 10:01:54 -0700 (PDT) In-Reply-To: <870A29FE-0E15-498C-BB2C-66C470725708@sanityinc.com> References: <6343E9EC-9E23-4D44-9CD1-82C26DB7CDA3@sanityinc.com> <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> <878udysfn2.fsf@violet.siamics.net> <83mw2eecne.fsf@gnu.org> <874momsbsi.fsf_-_@violet.siamics.net> <83egnqe9a9.fsf@gnu.org> <80D6D15A-8911-4460-A516-1D22B5B656C2@sanityinc.com> <870A29FE-0E15-498C-BB2C-66C470725708@sanityinc.com> Date: Sun, 19 Apr 2015 18:01:54 +0100 X-Google-Sender-Auth: _equtMrXMzdoDMrm_fpevWLBa_g Message-ID: Subject: Re: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data From: Artur Malabarba Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 3.3 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Done. [...] Content analysis details: (3.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (bruce.connor.am[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.46 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 1.2 MISSING_HEADERS Missing To: header 2.8 MALFORMED_FREEMAIL Bad headers on message from free email service 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: 20231-done Cc: 20231-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: bruce.connor.am@gmail.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 3.3 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Done. [...] Content analysis details: (3.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (bruce.connor.am[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.46 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 1.2 MISSING_HEADERS Missing To: header 2.8 MALFORMED_FREEMAIL Bad headers on message from free email service 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid Done. ------------=_1429462983-5657-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Mar 2015 20:45:05 +0000 Received: from localhost ([127.0.0.1]:36463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTcdk-0005mP-54 for submit@debbugs.gnu.org; Thu, 05 Mar 2015 15:45:05 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40505) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTcdg-0005la-0t for submit@debbugs.gnu.org; Thu, 05 Mar 2015 15:45:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTcdZ-0006UL-0I for submit@debbugs.gnu.org; Thu, 05 Mar 2015 15:44:54 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=AC_HTML_NONSENSE_TAGS, BAYES_50, FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTcdY-0006UD-Hb for submit@debbugs.gnu.org; Thu, 05 Mar 2015 15:44:52 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTcdW-0000ba-Mo for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2015 15:44:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTcdS-0006Sj-Uk for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2015 15:44:50 -0500 Received: from mail-ie0-x234.google.com ([2607:f8b0:4001:c03::234]:41269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTcdS-0006Sa-Km for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2015 15:44:46 -0500 Received: by iecrd18 with SMTP id rd18so79964583iec.8 for ; Thu, 05 Mar 2015 12:44:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=Ir7aEbpgpoKWG9j4obknLL4Nd7UfhLqLXOlbxH2vUeY=; b=JOqq5GYrDEWAZFD6uwXhmM0PcQe+QX8OazRV1NxXpfXtPcYG8THVZRUOp5jgPfumU3 spP90K2hBcsL6zrDL/m9WsSNccItOc+SvT5x1qSuy/jA38z/cC0LsIwOkR7syelcgPHl KqFPU2phLf2orCIpOzEMdfMX+HHSaj2vpVpXr1LKAMC/FQY4k1bEvu6fIQHjT0oCuV67 k97S+IhY2MfgIPMBt9OucVNShBrzcpqMakrJAwaj2KAElxLsWNgou26kyYaixjO8+3ZT pZHO+EcWrmYpwFbgufDLIzEbLaIVvbCoyeoJj7GB6sbCviCj5B7hxhF53abmL5BbkY+G H6dw== X-Received: by 10.107.11.17 with SMTP id v17mr22617803ioi.74.1425588285614; Thu, 05 Mar 2015 12:44:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.36.54.78 with HTTP; Thu, 5 Mar 2015 12:44:05 -0800 (PST) From: =?UTF-8?B?Sm/Do28gR3VlcnJh?= Date: Thu, 5 Mar 2015 20:44:05 +0000 Message-ID: Subject: 24.4; Issue with Unicode characters in package description To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a1147d2d05c348c051090a371 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) --001a1147d2d05c348c051090a371 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Packages with Unicode characters in their description mess with the refreshing of the package archives. A popup buffer will always be shown in such situations, asking for the proper coding system. This buffer should be Unicode by default to avoid inconvenient situations like these. For example, just by starting Emacs as normally but using the following .emacs.d/init.el: (require 'package) (setq package-archives '(("melpa" . "http://melpa.org/packages/") ("gnu" . "http://elpa.gnu.org/packages/"))) (package-refresh-contents) A popup buffer will always be shown, stating: These default coding systems were tried to encode text in the buffer ` *temp*': (iso-latin-1-dos (3420 . 37326) (3421 . 40165)) However, each of them encountered characters it couldn't encode: iso-latin-1-dos cannot encode these: =E9=87=8E =E9=B3=A5 Click on a character (or switch to this window by `C-x o' and select the characters by RET) to jump to the place it appears, where `C-u C-x =3D' will give information about it. Select one of the safe coding systems listed below, or cancel the writing with C-g and edit the buffer to remove or modify the problematic characters, or specify any other coding system (and risk losing the problematic characters). utf-8 euc-jis-2004 euc-jp iso-2022-jp-2004 gb18030 utf-7 utf-16 utf-16be-with-signature utf-16le-with-signature utf-16be utf-16le iso-2022-7bit utf-8-auto utf-8-with-signature eucjp-ms utf-8-hfs japanese-shift-jis-2004 japanese-iso-7bit-1978-irv utf-7-imap utf-8-emacs prefer-utf-8 Another popup windows pointing to the cause will also be shown: (yatex . [(20150118 1600) nil "Yet Another tex-mode for emacs //=E9=87=8E= =E9=B3=A5//" tar nil]) In GNU Emacs 24.4.1 (i686-pc-mingw32) of 2014-10-24 on LEG570 Windowing system distributor `Microsoft Corp.', version 6.3.9600 Configured using: `configure --prefix=3D/c/usr' Important settings: value of $LANG: PTG locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x k C-x k C-x k C-x k C-x k C-x k M-x r e p o r t - e m a c s - b u g Recent messages: Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail help-mode mm-archive message format-spec rfc822 mml easymenu mml-sec mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils network-stream starttls url-http tls mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util mm-util help-fns mail-prsvr password-cache url-vars epg package epg-config time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32notify w32 multi-tty emacs) Memory information: ((conses 8 92381 16943) (symbols 32 22657 0) (miscs 32 40 202) (strings 16 21255 14970) (string-bytes 1 521369) (vectors 8 18291) (vector-slots 4 1126131 63824) (floats 8 71 297) (intervals 28 532 1923) (buffers 508 14)) --001a1147d2d05c348c051090a371 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Packages with Unicode characters in their description= mess with the
refreshing of the package archives. A popup bu= ffer will always be shown
in such situations, asking for the prop= er coding system. This buffer
should be Unicode by default to avo= id inconvenient situations like these.

For example= , just by starting Emacs as normally but using the following
.ema= cs.d/init.el:

(require 'package)
(se= tq package-archives '(("melpa" . "http://melpa.org/packages/")
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0("gnu" . "ht= tp://elpa.gnu.org/packages/")))
(package-refresh-content= s)

A popup buffer will always be shown, stating:

These default coding systems were tried to encode t= ext
in the buffer ` *temp*':
=C2=A0 (iso-latin-1-do= s (3420 . 37326) (3421 . 40165))
However, each of them encountere= d characters it couldn't encode:
=C2=A0 iso-latin-1-dos canno= t encode these: =E9=87=8E =E9=B3=A5

Click on a cha= racter (or switch to this window by `C-x o'
and select the ch= aracters by RET) to jump to the place it appears,
where `C-u C-x = =3D' will give information about it.

Select on= e of the safe coding systems listed below,
or cancel the writing = with C-g and edit the buffer
=C2=A0 =C2=A0to remove or modify the= problematic characters,
or specify any other coding system (and = risk losing
=C2=A0 =C2=A0the problematic characters).
<= br>
=C2=A0 utf-8 euc-jis-2004 euc-jp iso-2022-jp-2004 gb18030 utf= -7 utf-16
=C2=A0 utf-16be-with-signature utf-16le-with-signature = utf-16be utf-16le
=C2=A0 iso-2022-7bit utf-8-auto utf-8-with-sign= ature eucjp-ms utf-8-hfs
=C2=A0 japanese-shift-jis-2004 japanese-= iso-7bit-1978-irv utf-7-imap
=C2=A0 utf-8-emacs prefer-utf-8

Another popup windows pointing to the cause will also = be shown:

(yatex . [(20150118 1600) nil "Yet = Another tex-mode for emacs //=E9=87=8E=E9=B3=A5//" tar nil])


In GNU Emacs 24.4.1 (i686-pc-mingw32)
<= div>=C2=A0of 2014-10-24 on LEG570
Windowing system distributor `M= icrosoft Corp.', version 6.3.9600
Configured using:
=C2=A0`configure --prefix=3D/c/usr'

Important= settings:
=C2=A0 value of $LANG: PTG
=C2=A0 locale-cod= ing-system: cp1252

Major mode: Lisp Interaction

Minor modes in effect:
=C2=A0 tooltip-mode= : t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-m= ode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t<= /div>
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock= -mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-m= ode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encr= yption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 l= ine-number-mode: t
=C2=A0 transient-mark-mode: t

Recent input:
<help-echo> <escape> <escap= e> <escape> <escape> <escape>=C2=A0
<esca= pe> <escape> <escape> <escape> <escape> <esca= pe>=C2=A0
C-x k C-x k <return> C-x k <return> C-x = k <return>=C2=A0
C-x k <return> C-x k <return> = M-x r e p o r t - e m=C2=A0
a c s - b u g <return>

Recent messages:

Load-path shadow= s:
None found.

Features:
(shad= ow sort mail-extr emacsbug sendmail help-mode mm-archive message
= format-spec rfc822 mml easymenu mml-sec mailabbrev gmm-utils mailheader
mm-decode mm-bodies mm-encode mail-utils network-stream starttls
url-http tls mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw
url-cache url-auth url url-proxy url-privacy url-expand url-methods=
url-history url-cookie url-domsuf url-util mailcap url-handlers<= /div>
url-parse auth-source eieio byte-opt bytecomp byte-compile cconv<= /div>
eieio-core gnus-util mm-util help-fns mail-prsvr password-cache u= rl-vars
epg package epg-config time-date tooltip electric uniquif= y ediff-hook
vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-= common-fns
disp-table w32-win w32-vars tool-bar dnd fontset image= regexp-opt fringe
tabulated-list newcomment lisp-mode prog-mode = register page menu-bar
rfn-eshadow timer select scroll-bar mouse = jit-lock font-lock syntax
facemenu font-core frame cham georgian = utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean = japanese hebrew greek romanian slovak
czech european ethiopic ind= ian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simpl= e abbrev minibuffer nadvice loaddefs button
faces cus-face macroe= xp files text-properties overlay sha1 md5 base64
format env code-= pages mule custom widget hashtable-print-readable
backquote make-= network-process w32notify w32 multi-tty emacs)

Mem= ory information:
((conses 8 92381 16943)
=C2=A0(symbols= 32 22657 0)
=C2=A0(miscs 32 40 202)
=C2=A0(strings 16 = 21255 14970)
=C2=A0(string-bytes 1 521369)
=C2=A0(vecto= rs 8 18291)
=C2=A0(vector-slots 4 1126131 63824)
=C2=A0= (floats 8 71 297)
=C2=A0(intervals 28 532 1923)
=C2=A0(= buffers 508 14))

--001a1147d2d05c348c051090a371-- ------------=_1429462983-5657-3-- From unknown Sun Jun 15 08:51:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20231: closed (Re: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data) Resent-From: Steve Purcell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Apr 2015 17:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 20231@debbugs.gnu.org Received: via spool by 20231-submit@debbugs.gnu.org id=B20231.14294635796600 (code B ref 20231); Sun, 19 Apr 2015 17:13:01 +0000 Received: (at 20231) by debbugs.gnu.org; 19 Apr 2015 17:12:59 +0000 Received: from localhost ([127.0.0.1]:60865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YjsmB-0001iO-4j for submit@debbugs.gnu.org; Sun, 19 Apr 2015 13:12:59 -0400 Received: from purcellpeople.com ([85.214.32.38]:38617 helo=h1189701.stratoserver.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yjsm9-0001i6-0c for 20231@debbugs.gnu.org; Sun, 19 Apr 2015 13:12:57 -0400 Received: from [192.168.1.103] (host86-153-255-94.range86-153.btcentralplus.com [86.153.255.94]) by h1189701.stratoserver.net (Postfix) with ESMTPSA id BC67082008E for <20231@debbugs.gnu.org>; Sun, 19 Apr 2015 19:12:50 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) From: Steve Purcell In-Reply-To: Date: Sun, 19 Apr 2015 18:06:02 +0100 Content-Transfer-Encoding: 7bit Message-Id: <75BF8585-E237-467E-89A1-259C5BDFFEC8@sanityinc.com> References: X-Mailer: Apple Mail (2.2098) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Thanks Artur & everyone else who chipped in.