From f88bdc45e02c8d6418b55102ec66cd446c956d93 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Wed, 19 Mar 2014 17:14:26 +0100 Subject: [PATCH] lisp/emacs-lisp/package.el (describe-package-1): Decode commentary (bug#16733). --- lisp/ChangeLog | 5 +++++ lisp/emacs-lisp/package.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4308d4085fa..50afbc2002d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-03-19 Juanma Barranquero + + * emacs-lisp/package.el (describe-package-1): + Decode commentary (bug#16733). + 2014-03-18 Juanma Barranquero * custom.el (defcustom): Doc fix: recommend avoiding destructive diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index d8d479871b2..e0d1c99d369 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -1531,7 +1531,8 @@ If optional arg NO-ACTIVATE is non-nil, don't activate packages." (setq readme-string (buffer-string)) t)) (error nil)) - (insert readme-string)) + (let ((coding (detect-coding-string readme-string t))) + (insert (decode-coding-string readme-string coding t)))) ((file-readable-p readme) (insert-file-contents readme) (goto-char (point-max)))))))) -- 2.39.2