From: Andy Moreton <andy.moreton@nospam.artimi.com>
Subject: Re: write file with coding-system utf-16 doesnt work
Date: Thu, 13 Oct 2005 11:28:28 +0000 (UTC) [thread overview]
Message-ID: <Xns96EE7F2EAEFEDajmrtmi@213.123.26.234> (raw)
In-Reply-To: 3r6g3sFi4trpU1@uni-berlin.de
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
next prev parent reply other threads:[~2005-10-13 11:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-13 7:26 write file with coding-system utf-16 doesnt work Dirk Zabel
2005-10-13 11:28 ` Andy Moreton [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-10-14 8:16 Dirk Zabel
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=Xns96EE7F2EAEFEDajmrtmi@213.123.26.234 \
--to=andy.moreton@nospam.artimi.com \
/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).