From owner-ntemacs-users@june  Thu Sep 19 20:52:36 1996
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Thu" "19" "September" "1996" "23:20:52" "-0400" "Mike Krell" "mbk@choh001.cho.ge.com" nil "34" "\"double hexlifying\" problem in ntemacs 19.34" "^From:" nil nil "9" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.7.5/7.2ju) with SMTP id UAA27355 for <voelker@june.cs.washington.edu>; Thu, 19 Sep 1996 20:52:36 -0700
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id UAA30600 for <voelker@joker.cs.washington.edu>; Thu, 19 Sep 1996 20:52:34 -0700
Received: from ns.ge.com (ns.ge.com [192.35.39.24]) by june.cs.washington.edu (8.7.5/7.2ju) with ESMTP id UAA24913 for <ntemacs-users@cs.washington.edu>; Thu, 19 Sep 1996 20:22:58 -0700
Received: from choh081.cho.ge.com ([3.16.17.81]) by ns.ge.com (8.7.5/8.7.3) with SMTP id XAA18946 for <ntemacs-users@cs.washington.edu>; Thu, 19 Sep 1996 23:25:22 -0400 (EDT)
Message-Id: <199609200325.XAA18946@ns.ge.com>
Received: by choh081.cho.ge.com 	(1.37.109.8/16.2) id AA01216; Thu, 19 Sep 1996 23:20:52 -0400
From: Mike Krell <mbk@choh001.cho.ge.com>
To: ntemacs-users@cs.washington.edu
Subject: "double hexlifying" problem in ntemacs 19.34
Date: Thu, 19 Sep 1996 23:20:52 -0400

I'm seeing some strange behavior with hexl mode with ntemacs 19.34 under
windows 95.  (I previously was running 19.31 and saw the same problem.)  I
can enter hexl mode with no problems, but any files which are saved from
hexl-mode are corrupted in a very interesting manner.  For example, if I edit
a file containing "This is text" replacing the "T" with "U", then the
following gets written to the file when it is saved:


00000000: 3030 3030 3030 3030 3a20 3535 3638 2036  00000000: 5568 6
00000010: 3937 3320 3230 3639 2037 3332 3020 3734  973 2069 7320 74
00000020: 3635 2037 3837 3420 3265 2020 2020 2020  65 7874 2e      
00000030: 2020 2055 6869 7320 6973 2074 6578 742e     Uhis is text.
00000040: 0d0a                                     ..


It's as if in the process of "unhexlifying" the buffer contents, emacs is
actually "hexlifying" them again before writing the file.  (The text in the
right hand side of the file looks like the hexlified representation of the
modified buffer.)  This occurs whether the original file is binary or text.

Has anyone else seen this?  Any clues?

BTW, I have the following lines in my .emacs file:

(setq shell-file-name "c:\\bash\\bin\\bash.exe")
(setq shell-command-switch "-rcfile c:\\mbk\\.bashrc_env -i -c")
(setq hexlify-command "hexl -hex ")
(setq dehexlify-command "hexl -hex -de ")

     Mike                                    mike.krell@cho.ge.com

"Many a man in love with a dimple makes the mistake of marrying 
the whole girl."
                                        -- Stephen Leacock

