From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#16733: messed up unicode chars in package description Date: Wed, 19 Mar 2014 02:26:59 -0400 Message-ID: References: <7tfvnn7phj.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1395210483 12332 80.91.229.3 (19 Mar 2014 06:28:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2014 06:28:03 +0000 (UTC) Cc: 16733@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 19 07:28:11 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WQ9yy-0000ik-Ft for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Mar 2014 07:28:08 +0100 Original-Received: from localhost ([::1]:38866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQ9yy-0005c6-32 for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Mar 2014 02:28:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQ9yu-0005bx-7Z for bug-gnu-emacs@gnu.org; Wed, 19 Mar 2014 02:28:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQ9yt-0005V3-91 for bug-gnu-emacs@gnu.org; Wed, 19 Mar 2014 02:28:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQ9yt-0005Ul-51 for bug-gnu-emacs@gnu.org; Wed, 19 Mar 2014 02:28:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WQ9yr-0005jY-NO for bug-gnu-emacs@gnu.org; Wed, 19 Mar 2014 02:28:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <7tfvnn7phj.fsf@fencepost.gnu.org> Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Mar 2014 06:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16733 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16733-submit@debbugs.gnu.org id=B16733.139521042621949 (code B ref 16733); Wed, 19 Mar 2014 06:28:01 +0000 Original-Received: (at 16733) by debbugs.gnu.org; 19 Mar 2014 06:27:06 +0000 Original-Received: from localhost ([127.0.0.1]:40646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQ9xw-0005hh-Lf for submit@debbugs.gnu.org; Wed, 19 Mar 2014 02:27:05 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:35490) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQ9xs-0005hK-Cx for 16733@debbugs.gnu.org; Wed, 19 Mar 2014 02:27:01 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WQ9xr-0005n9-QM; Wed, 19 Mar 2014 02:26:59 -0400 X-Spook: Ft. Knox FIPS140 sweep UOP president UFO militia Ortega X-Ran: |SC'bkW7/Ed{aU'b92kp\!R7v/I1C)YM"Mx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:86963 Archived-At: Juanma Barranquero wrote: > On Thu, Feb 13, 2014 at 2:47 AM, Glenn Morris wrote: > >> Scroll down the description past the part that says "M-x aa2u RET". >> The buffer is completely messed up at this point, showing raw >> characters instead of the unicode box that you see if you visit the raw >> source file for the package. See attached image. > > This seems enough. OK. (Presumably it could still go wrong if it ever finds a non-ascii, non-utf-8 package, but those are probably very rare.) > === modified file 'lisp/emacs-lisp/package.el' > --- lisp/emacs-lisp/package.el 2014-03-14 20:55:40 +0000 > +++ lisp/emacs-lisp/package.el 2014-03-19 01:31:28 +0000 > @@ -1528,7 +1528,8 @@ > (let ((version-control 'never) > (require-final-newline t)) > (save-buffer)) > - (setq readme-string (buffer-string)) > + (setq readme-string (decode-coding-string > + (buffer-string) 'prefer-utf-8 t)) > t)) > (error nil)) > (insert readme-string))