🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.vm.bug
Article #469

Re: Should not write the code point of a character to INBOX

#469
From: Yuning Feng
Date: Sun, 25 May 2008 07:37
29 lines
2211 bytes
I have solved it myself.

--- vm-folder.el.orig	2008-05-24 03:14:12.000000000 +0800
+++ vm-folder.el	2008-05-25 15:26:32.000000000 +0800
@@ -1230,7 +1230,11 @@
 	    (condition-case ()
 		(progn
 		  (setq oldpoint (point)
-			data (read (current-buffer)))
+			data (car (read-from-string
+				   (decode-coding-string
+				    (buffer-substring
+				     (match-beginning 2) (match-end 2))
+				    'utf-8))))
 		  (if (and (or (not (listp data)) (not (> (length data) 1)))
 			   (not (vectorp data)))
 		      (progn
@@ -1806,8 +1810,9 @@
 	      (let ((print-escape-newlines t))
 		(prin1-to-string attributes))
 	      "\n\t"
-	      (let ((print-escape-newlines t))
-		(prin1-to-string cache))
+	      (string-as-unibyte
+	       (let ((print-escape-newlines t))
+		 (prin1-to-string cache)))
 	      "\n\t"
 	      (let ((print-escape-newlines t))
 		(prin1-to-string (vm-labels-of m)))
Technical Details
Message-ID: <3116f123-5e10-4801-bf54-7067920264c1@c19g2000prf.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!c19g2000prf.googlegroups.com!not-for-mail
References: <050ac48d-e096-422d-aedb-d805590139ce@z24g2000prf.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f6829,cb57d4b8a884432
X-Google-Attributes: gidf6829,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!c19g2000prf.googlegroups.com!not-for-mail
From: Yuning Feng <fengyuning1984@gmail.com>
Newsgroups: gnu.emacs.vm.bug
Subject: Re: Should not write the code point of a character to INBOX
Date: Sun, 25 May 2008 00:37:52 -0700 (PDT)
Organization: http://groups.google.com
Lines: 29
Message-ID: <3116f123-5e10-4801-bf54-7067920264c1@c19g2000prf.googlegroups.com>
References: <050ac48d-e096-422d-aedb-d805590139ce@z24g2000prf.googlegroups.com>
NNTP-Posting-Host: 123.116.139.132
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1211701072 8644 127.0.0.1 (25 May 2008 07:37:52 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 25 May 2008 07:37:52 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: c19g2000prf.googlegroups.com; posting-host=123.116.139.132; 
 posting-account=bvwfvwoAAABlct2doviPC8TY7mWSAGRz
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.8.1.14) 
 Gecko/20080404 Iceweasel/2.0.0.14 (Debian-2.0.0.14-0etch1),gzip(gfe),gzip(gfe)