From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/32540 Path: main.gmane.org!not-for-mail From: Dave Love Newsgroups: gmane.emacs.gnus.general Subject: Re: imap breaks latin-1 characters Date: Fri, 22 Sep 2000 15:56:08 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: <200009221456.PAA10338@djlvig.dl.ac.uk> References: <87vgvu81n4.fsf@gnu.org> <200009181322.e8IDMYg03611@zsh.2y.net> <200009181517.e8IFHV503937@zsh.2y.net> <200009181958.e8IJwRT06371@zsh.2y.net> <200009182234.e8IMY0R07025@zsh.2y.net> <200009191243.e8JChFg09912@zsh.2y.net> <200009212313.AAA08518@djlvig.dl.ac.uk> <200009220018.e8M0IKR24299@zsh.2y.net> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035168810 20411 80.91.224.250 (21 Oct 2002 02:53:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:53:30 +0000 (UTC) Return-Path: Original-Received: from fisher.math.uh.edu (fisher.math.uh.edu [129.7.128.35]) by mailhost.sclp.com (Postfix) with ESMTP id 0C215D051E for ; Fri, 22 Sep 2000 10:57:24 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by fisher.math.uh.edu (8.9.1/8.9.1) with ESMTP id JAC05183; Fri, 22 Sep 2000 09:56:34 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 22 Sep 2000 09:55:58 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id JAA14812 for ; Fri, 22 Sep 2000 09:55:47 -0500 (CDT) Original-Received: from djlvig.dl.ac.uk (djlvig.dl.ac.uk [148.79.112.146]) by mailhost.sclp.com (Postfix) with ESMTP id F3D0AD051E for ; Fri, 22 Sep 2000 10:56:09 -0400 (EDT) Original-Received: (from fx@localhost) by djlvig.dl.ac.uk (8.8.7/8.8.5) id PAA10338; Fri, 22 Sep 2000 15:56:08 +0100 X-Authentication-Warning: djlvig.dl.ac.uk: fx set sender to d.love@dl.ac.uk using -f Original-To: ding@gnus.org In-Reply-To: ShengHuo ZHU's message of "Thu, 21 Sep 2000 20:18:20 -0400" User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.0.90 Original-Lines: 21 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:32540 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:32540 >>>>> "ZSH" == ShengHuo ZHU writes: ZSH> The problems discussed are handling unibyte string or buffer. ZSH> Unibyte buffer was introduced in Gnus, partially because early ZSH> Emacs 20 could not handle 8bit data properly. So this is just a problem with the Gnus code? ZSH> which means 8bit unibyte characters (\240-\377) are converted to ZSH> latin-iso8859-1 characters instead of eight-bit-graphic ones ZSH> (see DEFAULT_NONASCII_INSERT_OFFSET in the Emacs source). Presumably you can bind `nonascii-translation-table' if necessary. It seems reasonable to be able to use a zero `nonascii-insert-offset' now. Feel free to suggest it if that will solve a problem. ZSH> Now, suppose to insert an encoded (unibyte) string (maybe from ZSH> some unibyte buffer) into a multibyte buffer, then decode it. Decoding in a unibyte buffer seems a better idea if it needs to be done explicitly.