From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/25467 Path: main.gmane.org!not-for-mail From: Vladimir Volovich Newsgroups: gmane.emacs.gnus.general Subject: Re: setting default MIME charset not works with emacs 20.4 Date: 27 Sep 1999 22:52:41 +0400 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035162846 14100 80.91.224.250 (21 Oct 2002 01:14:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:14:06 +0000 (UTC) Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id OAA06114 for ; Mon, 27 Sep 1999 14:59:53 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id NAB26047; Mon, 27 Sep 1999 13:59:52 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 27 Sep 1999 14:00:19 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id OAA22828 for ; Mon, 27 Sep 1999 14:00:08 -0500 (CDT) Original-Received: from relay2.vsu.ru (postfix@mail.vsu.ru [62.76.169.17]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id OAA06085 for ; Mon, 27 Sep 1999 14:57:54 -0400 (EDT) Original-Received: by relay2.vsu.ru (Postfix, from userid 5) id 7FD0818F7; Mon, 27 Sep 1999 22:57:50 +0400 (MSD) Original-Received: (from vvv@localhost) by vvv.vsu.ru (8.9.3/8.9.3) id WAA02542; Mon, 27 Sep 1999 22:52:42 +0400 Original-To: ding@gnus.org In-Reply-To: Lars Magne Ingebrigtsen's message of "27 Sep 1999 19:28:31 +0200" Original-Lines: 47 User-Agent: Gnus/5.070097 (Pterodactyl Gnus v0.97) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:25467 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:25467 "LMI" == Lars Magne Ingebrigtsen writes: >> Well, i set >> >> (set-language-environment "Cyrillic-KOI8") >> >> and i expect that in this language environment gnus should prefer >> koi8-r when sending cyrillic letters. but gnus still uses >> iso-8859-5. so, it seems that gnus does not extract that info >> from coding system properties (or elsewhere), to guess the >> preferred charset to use. LMI> Hm. LMI> What does LMI> (mm-find-charset-region (point-min) (point-max)) LMI> and LMI> (mm-find-mime-charset-region (point-min) (point-max)) LMI> evaluate to for you in a buffer with some cyrillic text? We have (set-language-environment "Cyrillic-KOI8") then, in the *mail* buffer with cyrillic letters, (mm-find-charset-region (point-min) (point-max)) gives (ascii cyrillic-iso8859-5) (mm-find-mime-charset-region (point-min) (point-max)) gives (iso-8859-5) (note that current language environment is Cyrillic-KOI8, but mime charset returned is iso-8859-5!) After executing (put-charset-property 'cyrillic-iso8859-5 'prefered-coding-system 'koi8-r) we get the following results: (mm-find-charset-region (point-min) (point-max)) gives (ascii cyrillic-iso8859-5) (mm-find-mime-charset-region (point-min) (point-max)) gives (koi8-r) So, i wonder, is gnus supposed to guess mime charset for cyrillic to be koi8-r when the Cyrillic-KOI8 language environment is active, or i should execute the above statement (put-charset-property 'cyrillic-iso8859-5 'prefered-coding-system 'koi8-r) in my .emacs? Best regards, -- Vladimir.