🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Should not write the code point of a character to INBOX

#467
From: Yuning Feng
Date: Fri, 23 May 2008 21:53
24 lines
2251 bytes
Robert,

As you can see from my previous posts, I use some non-latin characters
in mails in my daily life. There is a problem with VM if there are
multibyte characters in the headers.

After hours of debugging, I was able to extract some information of
the problem. When quitting, VM did `vm-stuff-attributes', and inside
that function, `insert-before-markers', to insert the X-VM-v5-Data. I
had a mail with 2 characters e8 b0 83 e8 af 95 (hex, utf-8) in the
subject. What VM tried to insert (as the argument of `insert-before-
marker'), was 8c03 8db5, the code points of those 2 characters. For
some reason, only 03 b5 was written to the INBOX buffer, and finally
saved. In a later session when VM tried to update the mails summary by
reading X-VM-v6-Data in INBOX, the subject containg 03 b5 showed as an
unreadable annoying string.

I guess the utf-8 codes of characters are to be written to INBOX
instead of their code-points? Could you have a look at the code and
see if it is buggy?

Thanks very much!

Yu Ning
Technical Details
Message-ID: <050ac48d-e096-422d-aedb-d805590139ce@z24g2000prf.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!z24g2000prf.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f6829,cb57d4b8a884432,start
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!z24g2000prf.googlegroups.com!not-for-mail
From: Yuning Feng <fengyuning1984@gmail.com>
Newsgroups: gnu.emacs.vm.bug
Subject: Should not write the code point of a character to INBOX
Date: Fri, 23 May 2008 14:53:34 -0700 (PDT)
Organization: http://groups.google.com
Lines: 24
Message-ID: <050ac48d-e096-422d-aedb-d805590139ce@z24g2000prf.googlegroups.com>
NNTP-Posting-Host: 123.116.128.108
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1211579615 10172 127.0.0.1 (23 May 2008 21:53:35 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 23 May 2008 21:53:35 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: z24g2000prf.googlegroups.com; posting-host=123.116.128.108; 
 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)