From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.help Subject: Re: Why is cp1252 special? Date: Fri, 07 Oct 2005 20:14:36 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: <87d5mhvbky.fsf@wilson.rwth-aachen.de> <874q7tl3js.fsf@wilson.rwth-aachen.de> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1128709119 9551 80.91.229.2 (7 Oct 2005 18:18:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2005 18:18:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 20:18:35 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ENwmO-0003RT-79 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 20:17:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENwmN-0006Mr-Go for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 14:17:11 -0400 Original-Newsgroups: gnu.emacs.help X-Face: :6KQZ[nyoS_edmB.%gw-=)BYth^|2+Y+^cu%I$FSx!&>-'om>3H7A|M&n(V7fIo3P.; yo.b yq4$p; ZaBtkv)\}biaiBQe"mD}iib1AA@99-fZ7i*bLhNRVC&0Wkxg9)SH?oWc@{ Mail-Copies-To: nobody User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:TOaNP26gbxZyQ4qBLJiHL4vrqbI= Original-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de Original-X-Trace: news.uni-ulm.de 1128708884 134.60.10.123 (7 Oct 2005 20:14:44 +0200) Original-Lines: 87 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!cyclone.bc.net!nntp-server.pubsub.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!news.uni-ulm.de!bridgekeeper.physik.uni-ulm.de!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:134468 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30045 Archived-At: On Fri, Oct 07 2005, Torsten Bronger wrote: > Reiner Steib writes: >> Please elaborate what's the problem in Gnus. > > The problem *was* that with some articles with undeclared encoding, > Gnus used cp850 because my .emacs said > > (prefer-coding-system 'cp850) > (prefer-coding-system 'iso-latin-1) > (prefer-coding-system 'utf-8) We already have a mechanism in Gnus to say "treat charset `windows-foo' as `iso-8859-1', if we don't have `windows-foo': ,----[ v mm-charset-synonym-alist RET ] | mm-charset-synonym-alist is a variable defined in `mm-util'. | Its value is | ((big5-hkscs . big5) | (unicode . utf-16-le) | (ks_c_5601-1987 . cp949)) | | Documentation: | A mapping from invalid charset names to the real charset names. `---- But (to my knowledge) we don't have a mechanism to say "treat `iso-8859-1' as `windows-1252'". `windows-1252' is a superset of `iso-8859-1' so this would not hurt for correctly labeled `iso-8859-1' postings, but it would display "labeled as `iso-8859-1', but in fact it's `windows-1252'" too. We also don't have "treat unlabeled (undecided) as `what-ever'". I will probably install a patch for this in No Gnus: ,----[ M-x customize-variable RET mm-charset-override-alist RET ] | mm-charset-override-alist: | Set: | [X] (iso-8859-1 . windows-1252) | [ ] (undecided . windows-1252) | [...] | | A mapping from undesired charset names to their replacement. | | You may add pair like (iso-8859-1 . windows-1252) here, | i.e. treat iso-8859-1 as windows-1252. windows-1252 is a | superset of iso-8859-1. `---- > What I observed is that (codepage-setup 1257) works but > (codepage-setup 1252) yields "Unsupported codepage 1252". > >> [...] I don't recall that (codepage-setup 1252) ever worked. > > Could this be because no mapping for 1252 appears in codepage.el? Probably. But it's not missing, because `windows-1252' is provided by `code-pages.el, not by `codepage.el'. I didn't remember that cp1257 was already present in `codepage.el' whereas `windows-1252' is provided by `code-pages.el'. From the thread ... Eli Zaretskii: | IIRC, `codepage-setup' was declared obsolete because the need to do | something in order for a coding system to become available was | deemed a bad idea. But I don't remember the details, nor what would | be the Right Way. The birth of code-pages.el was accompanied by | heated discussions, so some issues were lost in the dispute and | never resolved. Then, Kenichi Handa added the missing autoloads an changed the NEWS entry: ,----[ etc/NEWS ] | *** Many new coding systems are available in the `code-pages' library. | These include complete versions of most of those in codepage.el, based | on Unicode mappings. `codepage-setup' is now obsolete and is used | only in the MS-DOS port of Emacs. All coding systems defined in | `code-pages' are auto-loaded. `---- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/