From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63371 Path: news.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.gnus.general Subject: mm-util.el should know as many charsets as iconv Date: Mon, 19 Jun 2006 22:46:09 +0800 Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1150743816 6353 80.91.229.2 (19 Jun 2006 19:03:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Jun 2006 19:03:36 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m11898@lists.math.uh.edu Mon Jun 19 21:03:27 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 1FsP1m-0000Z8-Rc for ding-account@gmane.org; Mon, 19 Jun 2006 21:03:15 +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 1FsP1T-0005tv-00; Mon, 19 Jun 2006 14:02:56 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FsOxm-0005tn-00 for ding@lists.math.uh.edu; Mon, 19 Jun 2006 13:59:06 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FsOxi-0006zv-8a for ding@lists.math.uh.edu; Mon, 19 Jun 2006 13:59:05 -0500 Original-Received: from frodo.hserus.net ([204.74.68.40]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FsOxb-0004nl-00; Mon, 19 Jun 2006 20:58:55 +0200 Original-Received: from tc218-187-23-167.dialup.dynamic.apol.com.tw ([218.187.23.167]:4588 helo=jidanni1) by frodo.hserus.net with esmtpsa (Cipher TLSv1:AES256-SHA:256) (Exim 4.62 #0) id 1FsOxS-000O7G-BX by authid with plain; Tue, 20 Jun 2006 00:28:50 +0530 Original-To: bugs@gnus.org X-Draft-From: ("nndoc:nnmbox:mail.misc-75") X-Spam-Score: -2.1 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63371 Archived-At: 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. OK, I did (codepage-setup 874)(define-coding-system-alias 'windows-874 'cp874) like the Info page said. The Info page should say why we must do this by hand as it is not done automatically for us for all "windows-" sets. $ man Encode::Supported says for example, All cp* are also available as ibm-*, ms-*, and windows-* . (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.)