[mew-int 2805] Re: Charset (windows-1256) for body is not supported.

Christophe TROESTLER <[email protected]>
Newsgroups gmane.mail.mew.general
Organization Universite de Mons (http://math.umons.ac.be/an/)
Message-ID <20100124.155948.756112800918120233.Christophe.Troestler@umons.ac.be>
On Sun, 24 Jan 2010 09:23:57 -0500, Harald Hanche-Olsen wrote:
> 
> + Christophe TROESTLER <[email protected]>:
> 
> > I use the development version of Mew with Emacs 23.  For the attached
> > message, Mew says that "Charset (windows-1256) for body is not
> > supported" despite the fact that mew-cs-database-for-decoding contains
> > 
> >  ("windows-1256" windows-1256)
> > 
> > Is this due to new inner representation of Emacs 23 ?
> 
> It appears that emacs does not support this charset.
> If you do M-x list-coding-systems RET you will see that windows-1256
> is missing (whereas windows-125[0-578] are all there).

Indeed.  This is a bit odd to me as there is a file
/usr/share/emacs/23.1/etc/charsets/CP1256.map in the Emacs
distribution.  The person who send me the message did not really want
to send me arabic however so I added

(if (not (memq 'windows-1256 coding-system-list))
    (define-coding-system-alias 'windows-1256 'windows-1252))

and this does the job.

Thanks for your answer.
Christophe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.