Gnus development mailing list
 help / color / mirror / Atom feed
From: Vladimir Volovich <vvv@vvv.vsu.ru>
Subject: Re: setting default MIME charset not works with emacs 20.4
Date: 27 Sep 1999 22:52:41 +0400	[thread overview]
Message-ID: <m3r9jkxk3q.fsf@vvv.vsu.ru> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "27 Sep 1999 19:28:31 +0200"

"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.


  reply	other threads:[~1999-09-27 18:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-30  0:16 Vladimir Volovich
1999-08-01 10:24 ` Vladimir Volovich
1999-09-24 17:01   ` Lars Magne Ingebrigtsen
1999-09-25 16:03     ` Vladimir Volovich
1999-09-27 17:28       ` Lars Magne Ingebrigtsen
1999-09-27 18:52         ` Vladimir Volovich [this message]
1999-09-27 19:14           ` Lars Magne Ingebrigtsen
1999-09-27 20:17             ` Arcady Genkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3r9jkxk3q.fsf@vvv.vsu.ru \
    --to=vvv@vvv.vsu.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).