unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de>
Subject: Re: utf-16-le-pre-write-conversion missing
Date: Thu, 11 Sep 2003 14:04:41 +0200	[thread overview]
Message-ID: <v97k4f5y5i.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: e808b168.0309100539.6c1e1e54@posting.google.com

On Wed, Sep 10 2003, Kai Grossjohann wrote:

> Dave Evans <root@hclb.demon.co.uk> 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	other threads:[~2003-09-11 12:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1351.1062350204.29551.help-gnu-emacs@gnu.org>
2003-09-10 13:39 ` utf-16-le-pre-write-conversion missing Kai Grossjohann
2003-09-11 12:04   ` Reiner Steib [this message]
2003-09-11 18:01   ` Peter J. Acklam
2003-08-31 17:14 Dave Evans

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v97k4f5y5i.fsf@marauder.physik.uni-ulm.de \
    --to=4.uce.03.r.s@nurfuerspam.de \
    --cc=reiner.steib@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).