From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> Newsgroups: gmane.emacs.help Subject: Re: utf-16-le-pre-write-conversion missing Date: Thu, 11 Sep 2003 14:04:41 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: reiner.steib@gmx.de NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1063282730 11249 80.91.224.253 (11 Sep 2003 12:18:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2003 12:18:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 14:18:49 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19xQPR-0004tN-00 for ; Thu, 11 Sep 2003 14:18:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19xQMT-0007OH-2C for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2003 08:15:45 -0400 Original-Newsgroups: gnu.emacs.help X-Face: 1; h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB; kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm; %Od List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12457 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12457 On Wed, Sep 10 2003, Kai Grossjohann wrote: > Dave Evans 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] -- ,,, (o o) ---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/