From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.help Subject: Re: write file with coding-system utf-16 doesnt work Date: Thu, 13 Oct 2005 11:28:28 +0000 (UTC) Organization: Artimi Message-ID: References: <3r6g3sFi4trpU1@uni-berlin.de> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1129203608 23958 80.91.229.2 (13 Oct 2005 11:40:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Oct 2005 11:40:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 13 13:40:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EQ1QB-0007aZ-H1 for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Oct 2005 13:38:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EQ1QA-0002pW-HZ for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Oct 2005 07:38:50 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!news-peer1!btnet-feed3!news-peer0-test!btnet-feed5!btnet!news.btopenworld.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: host217-40-213-68.in-addr.btopenworld.com Original-X-Trace: nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com 1129202908 26977 217.40.213.68 (13 Oct 2005 11:28:28 GMT) Original-X-Complaints-To: news-complaints@lists.btinternet.com Original-NNTP-Posting-Date: Thu, 13 Oct 2005 11:28:28 +0000 (UTC) User-Agent: Xnews/06.08.25 Original-Xref: shelby.stanford.edu gnu.emacs.help:134617 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30198 Archived-At: On Thu, 13 Oct 2005 07:26:43 GMT, Dirk Zabel wrote: > Hi, > if i try to save a file with coding-system utf-16-le, i keep getting the > message > symbol's function definition is void: utf16-le-pre-write-conversation > With tuf-16-be, i get the corresponding message: > symbol's function definition is void: utf16- be-pre-write-conversation > > On the other hand utf-8 works fine. > > M-x emacs-version gives: > GNU Emacs 21.3.1 (i386-mingw-windows98.2222) of 2004-03-10 on NYAUMO > > As far as i can see, this is the current binary package available for win32. > > I would be grateful for any hint. > > Thanks in advance > Dirk Add the following to your .emacs file: ;; Detect endianness of UTF-16 containing a Byte Order Mark U+FEFF (add-to-list 'auto-coding-regexp-alist '("^\xFF\xFE" . utf-16-le) t) (add-to-list 'auto-coding-regexp-alist '("^\xFE\xFF" . utf-16-be) t) ;; Add missing support functions (defun utf-16-le-pre-write-conversion (start end) nil) (defun utf-16-be-pre-write-conversion (start end) nil) HTH AndyM