help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: utf-16-le-pre-write-conversion missing


From: Reiner Steib
Subject: Re: utf-16-le-pre-write-conversion missing
Date: Thu, 11 Sep 2003 14:04:41 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

On Wed, Sep 10 2003, Kai Grossjohann wrote:

> Dave Evans <address@hidden> wrote:
>> When set-buffer-file-coding-system is set to utf-16-le,
>> I get error
>> "symbol's function definition is void: utf-16-pre-write-conversion"
>> in the minibuffer when attempting to save a file.

I can reproduce this with GNU Emacs 21.3.1.

> AFAIK, Emacs 21.3 does not support utf-16.  So it must be coming from
> some kind of package, perhaps you installed Mule-UCS?
>
> Alas, I don't have an Emacs 21.3 at the moment to check.  Please bear
> with me if it is wrong.

,----[ C-x C-m c utf-16 TAB TAB ]
| Possible completions are:
| utf-16-be                        utf-16-be-dos
| utf-16-be-mac                    utf-16-be-unix
| utf-16-le                        utf-16-le-dos
| utf-16-le-mac                    utf-16-le-unix
`----

It seems to me that either the function
`utf-16-le-pre-write-conversion' is missing or the line should be
removed from `utf-16.el' (same for -be-, probably):

     (pre-write-conversion . utf-16-le-pre-write-conversion)

I did a quick test with the dummy function "(defun
utf-16-le-pre-write-conversion (from to))": With this defun, I could
read Markus Kuhn's UTF-8 demo file[1] in Emacs 21.3, save it as
`utf-16-le'.  The result is readable in Emacs 21.3.50 (CVS HEAD).

But I'm not at all an expert in this, so it probably better to report
this as a bug: `M-x report-emacs RET'.

Bye, Reiner.

[1] <URL:http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt>
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]