From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/30686 Path: main.gmane.org!not-for-mail From: Shenghuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: should mbox be opened in unibyte mode Date: 05 May 2000 01:05:09 -0400 Organization: U of Rochester Sender: owner-ding@hpc.uh.edu Message-ID: <2nu2gdy4ca.fsf@tiger.jia.vnet> References: <2nn1m6js5u.fsf@tiger.jia.vnet> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035167187 9770 80.91.224.250 (21 Oct 2002 02:26:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:26:27 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 7C0D0D051E for ; Fri, 5 May 2000 01:04:57 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id AAB22902; Fri, 5 May 2000 00:04:56 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 05 May 2000 00:04:25 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@[204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id AAA04945 for ; Fri, 5 May 2000 00:04:12 -0500 (CDT) Original-Received: from shenghuo.dhs.org (d185d1eec.rochester.rr.com [24.93.30.236]) by mailhost.sclp.com (Postfix) with ESMTP id 153B7D051E for ; Fri, 5 May 2000 01:03:09 -0400 (EDT) Original-Received: (from zsh@localhost) by shenghuo.dhs.org (8.10.0/8.10.0) id e4555Aw05296; Fri, 5 May 2000 01:05:10 -0400 Original-To: ding@gnus.org X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q In-Reply-To: Vladimir Volovich's message of "05 May 2000 00:27:27 +0400" Original-Lines: 22 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.6 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:30686 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:30686 >>>>> "VV" == Vladimir Volovich writes: VV> i thought a bit on this, and it seems that mbox MUST be opened in VV> unibyte mode, otherwise the results will be broken. VV> mbox may contain arbitrary 8-bit data (coming from 8-bit CTT mime VV> parts e.g. in utf-8). these 8-bit char sequences must not be VV> interpreted by mule as multibyte chars because this is plain wrong: VV> these sequences come from random standard registered charsets which VV> have nothing to do with internal mule encoding. so, the mbox should be VV> treated as a raw (uni)byte sequence, but not as something that has VV> relation to internal mule encoding. You are right. I just found that Emacs mule can not handle arbitrary 8bit data in multibyte buffer. Most of these happen for 8bit utf-8 or koi8-r characters, not for iso-8859-?, cn-gb-2312, etc. Besides the mbox buffer, the original article buffers, mm buffers, backlog buffer, and nnfolder buffers should also be unibyte. But I am afraid it might cause disaster if I change too much. Let wait for Mr. Handa. -- Shenghuo