From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/32238 Path: main.gmane.org!not-for-mail From: ShengHuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: mime-charset determination Date: 20 Aug 2000 14:38:59 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: <5bya1rn5fg.fsf@finch.cs.rochester.edu> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035168543 18630 80.91.224.250 (21 Oct 2002 02:49:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:49:03 +0000 (UTC) Cc: astro@sbor.ru, bugs@gnus.org Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id C6378D051E for ; Sun, 20 Aug 2000 14:40:10 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id NAC05676; Sun, 20 Aug 2000 13:40:06 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 20 Aug 2000 13:39:26 -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 NAA03057 for ; Sun, 20 Aug 2000 13:39:16 -0500 (CDT) Original-Received: from gate.cs.rochester.edu (gate.cs.rochester.edu [192.5.53.207]) by mailhost.sclp.com (Postfix) with ESMTP id 463B6D051E; Sun, 20 Aug 2000 14:39:43 -0400 (EDT) Original-Received: from finch.cs.rochester.edu (finch.cs.rochester.edu [192.5.53.156]) by gate.cs.rochester.edu (8.8.8+Sun/T--) with ESMTP id OAA29989; Sun, 20 Aug 2000 14:39:01 -0400 (EDT) Original-Received: (from zsh@localhost) by finch.cs.rochester.edu (8.9.1b+Sun/Q++) id OAA09532; Sun, 20 Aug 2000 14:38:59 -0400 (EDT) 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: Andrei Elkin's message of "20 Aug 2000 22:21:45 +0400" Original-Lines: 40 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:32238 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:32238 Andrei Elkin writes: > Current (5.8.7 for me) version provides the definitions of > `mm-find-mime-charset-region','mm-mime-charset' that seems to be incorrect. > > For example my C-h L RET gives: > > Cyrillic-KOI8 language environment > > Support for Cyrillic KOI8-R. > > Sample text: > Russian (Русский) Здравствуйте! > [...] > I found out that `select-message-coding-system' works correctly > (resulting with cyrillic-koi8). So the situation becomes nice for me > with a redefinition of > > (defun mm-find-mime-charset-region (b e) > (let ((mime-charset > (coding-system-get (select-message-coding-system) 'mime-charset))) > (if (listp mime-charset) mime-charset (list mime-charset)))) > > that dont need for 'mm-mime-charset' at all. select-message-coding-system might not be the answer for all situations, especially when a message contains characters in the charset other than the default one. Anyway, the solution for KOI8-R encoding is (if (fboundp 'put-charset-property) (put-charset-property 'cyrillic-iso8859-5 'preferred-coding-system 'koi8-r)) ShengHuo