From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63372 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: mm-util.el should know as many charsets as iconv Date: Mon, 19 Jun 2006 23:30:13 +0200 Message-ID: References: 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 1150752976 8424 80.91.229.2 (19 Jun 2006 21:36:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Jun 2006 21:36:16 +0000 (UTC) Cc: bugs@gnus.org, ding@gnus.org Original-X-From: ding-owner+m11899@lists.math.uh.edu Mon Jun 19 23:36:11 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FsRPn-0000yc-7R for ding-account@gmane.org; Mon, 19 Jun 2006 23:36:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FsRPa-00063M-00; Mon, 19 Jun 2006 16:35:58 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FsRJw-00063E-00 for ding@lists.math.uh.edu; Mon, 19 Jun 2006 16:30:08 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FsRJq-0007ls-Jw for ding@lists.math.uh.edu; Mon, 19 Jun 2006 16:30:08 -0500 Original-Received: from mail.uni-ulm.de ([134.60.1.1]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FsRJs-0007pw-00; Mon, 19 Jun 2006 23:30:04 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.7/8.13.7) with ESMTP id k5JLTswx016208; Mon, 19 Jun 2006 23:29:55 +0200 (MEST) Original-Received: from viandante.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by bridgekeeper.physik.uni-ulm.de (Postfix) with SMTP id 799D910583; Mon, 19 Jun 2006 23:29:54 +0200 (CEST) Original-Received: (nullmailer pid 19121 invoked by uid 170); Mon, 19 Jun 2006 21:30:13 -0000 Original-To: Dan Jacobson X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB;kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od (Dan Jacobson's message of "Mon, 19 Jun 2006 22:46:09 +0800") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) X-DCC-meer-Metrics: gemini 1086; Body=3 Fuz1=3 Fuz2=3 X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63372 Archived-At: On Mon, Jun 19 2006, Dan Jacobson wrote: > In the buffer *Messages* I have painstakingly traced the non "$0" > prefixed message "Unknown charset: windows-874" to the file > /usr/share/emacs/site-lisp/gnus/lisp/mm-util.el > > And how unfair it is that windows-874 is unknown. Compare > $ iconv -l |grep 874|xargs > 874// CP874// CSISO153GOST1976874// GOST_1976874// IBM874// WINDOWS-874// > > So maybe if mm-util.el doesn't know a charset, perhaps it should > upcase the name, and pass the work over to iconv to give it a try. mm-util.el doesn't "know" any charset. The available charsets are provided by (X)Emacs. > OK, I did (codepage-setup 874)(define-coding-system-alias > 'windows-874 'cp874) like the Info page said. See also `mm-charset-eval-alist' (I didn't have time to document this properly yet) and `mm-charset-synonym-alist'. > The Info page should say why we must do this by hand as it is not > done automatically for us for all "windows-" sets. I recall some discussing on emacs-devel or emacs-pretest-bugs the not all `cp...' charsets should be aliased to `windows-...'. AFAICS, `windows-874' is not IANA registered: . > (By the way, the characters shown were squares unless I used emacs -nw > or used echo in a shell buffer. Perhaps I don't have a bold Thai font > installed.) Probably. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/