From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/38727 Path: main.gmane.org!not-for-mail From: Pavel@Janik.cz (Pavel =?iso-8859-2?q?Jan=EDk?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: multiple charsets handling in gnus Date: Wed, 12 Sep 2001 21:13:36 +0200 Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035174543 23977 80.91.224.250 (21 Oct 2002 04:29:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:29:03 +0000 (UTC) Return-Path: Return-Path: Original-Received: (qmail 19408 invoked from network); 12 Sep 2001 19:51:41 -0000 Original-Received: from czlug1.razdva.cz (HELO SnowWhite.SuSE.cz) (194.212.65.172) by gnus.org with SMTP; 12 Sep 2001 19:51:41 -0000 Original-Received: by SnowWhite.SuSE.cz (PJ, from userid 500) id 224CE4C038; Wed, 12 Sep 2001 21:53:13 +0200 (CEST) Original-To: ding@gnus.org X-Face: $"d&^B_IKlTHX!y2d,3;grhwjOBqOli]LV`6d]58%5'x/kBd7.MO&n3bJ@Zkf&RfBu|^qL+ ?/Re{MpTqanXS2'~Qp'J2p^M7uM:zp[1Xq#{|C!*'&NvCC[9!|=>#qHqIhroq_S"MH8nSH+d^9*BF: iHiAs(t(~b#1.{w.d[=Z In-Reply-To: (Pavel@Janik.cz's message of "Mon, 10 Sep 2001 09:27:17 +0200") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.106 Original-Lines: 82 Xref: main.gmane.org gmane.emacs.gnus.general:38727 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:38727 --=-=-= Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit From: Pavel@Janik.cz (Pavel Janík) Date: Mon, 10 Sep 2001 09:27:17 +0200 > > * Near the end of my ~/.gnus, I inserted the following lines: > > (require 'mm-util) > > (add-to-list 'mm-charset-synonym-alist '(windows-1251 . cp1251)) > > What about adding this to Gnus directly? There is already this code: > > ,(unless (mm-coding-system-p 'windows-1252) ; should be defined eventually > '(windows-1252 . iso-8859-1)) > > so we can extend this to have also 1251 together with 1250. I too have this > in my ~/.gnus to be able to read e-mails written on Windows: > > ;; Support for Windows-1250 > (require 'mm-util) > (add-to-list 'mm-charset-synonym-alist '(windows-1250 . cp1250)) > > I hope that I'll be able to remove that from my .gnus soon :-) Please apply the following patch. I thing Kai will immediately send his one ;-) 2001-09-12 Pavel Janík * mm-util.el (mm-charset-synonym-alist): add windows-1250 so we can read e-mails from Microsoft Outlook users not using ISO 8859-2 character set. --=-=-= Content-Type: text/x-patch; charset=iso-8859-2 Content-Disposition: attachment; filename=gnus-windows-1250.diff Content-Transfer-Encoding: 8bit diff -ur gnus.orig/lisp/ChangeLog gnus/lisp/ChangeLog --- gnus.orig/lisp/ChangeLog Wed Sep 12 20:57:00 2001 +++ gnus/lisp/ChangeLog Wed Sep 12 21:11:36 2001 @@ -1,3 +1,9 @@ +2001-09-12 Pavel Janík + + * mm-util.el (mm-charset-synonym-alist): add windows-1250 so we + can read e-mails from Microsoft Outlook users not using ISO + 8859-2 character set. + 2001-09-12 Didier Verna * nndiary.el: new version (0.2-b13). diff -ur gnus.orig/lisp/mm-util.el gnus/lisp/mm-util.el --- gnus.orig/lisp/mm-util.el Wed Sep 12 20:57:00 2001 +++ gnus/lisp/mm-util.el Wed Sep 12 21:09:59 2001 @@ -166,6 +166,11 @@ ;; `gnus-article-dumbquotes-map'. ,(unless (mm-coding-system-p 'windows-1252) ; should be defined eventually '(windows-1252 . iso-8859-1)) + ;; Windows-1250 is a variant of Latin-2 heavily used by Microsoft + ;; Outlook users in Czech republic. Use this to allow reading of their + ;; e-mails. cp1250 should be defined by M-x codepage-setup. + ,(unless (mm-coding-system-p 'windows-1250) ; should be defined eventually + '(windows-1250 . cp1250)) (x-ctext . ctext)) "A mapping from invalid charset names to the real charset names.") --=-=-= Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit -- Pavel Janík When you're in a fight with an idiot, it's difficult for other people to tell which one the idiot is. -- Bruce Perens on debian-devel --=-=-=--