Gnus development mailing list
 help / color / mirror / Atom feed
* mm-util.el should know as many charsets as iconv
@ 2006-06-19 14:46 Dan Jacobson
  2006-06-19 21:30 ` Reiner Steib
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Jacobson @ 2006-06-19 14:46 UTC (permalink / raw)
  Cc: ding

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-19 21:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-19 14:46 mm-util.el should know as many charsets as iconv Dan Jacobson
2006-06-19 21:30 ` Reiner Steib

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