Patch for emacs-unicode-2

Dimitris Dinodimos <[email protected]> Fri, 12 Oct 2007 23:02:37 +0300
Newsgroups gmane.comp.lang.erlang.distel.devel
Message-ID <[email protected]>
--=-oAryNgDDvlM+/PcnUWjx
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

The problem with the emacs-unicode-2 branch is the decoding of the
socket output.

The solution is documented in "decoding process output" in elisp
reference manual.
http://www.gnu.org/software/emacs/elisp/html_node/Decoding-Output.html

I hope this helps.

Dimitris


--=-oAryNgDDvlM+/PcnUWjx
Content-Disposition: attachment; filename=patch.txt
Content-Type: text/x-patch; name=patch.txt; charset=UTF-8
Content-Transfer-Encoding: 7bit

Index: elisp/derl.el
===================================================================
--- elisp/derl.el	(revision 45)
+++ elisp/derl.el	(working copy)
@@ -182,7 +182,7 @@
       (fsm-fail 'wrong-tag))
     (let ((digest (buffer-substring (point) (+ (point) 16))))
       (derl-eat-msg)
-      (if (equal (derl-gen-digest (string 0 0 0 42)) digest)
+      (if (equal (string-make-unibyte (derl-gen-digest (string 0 0 0 42))) digest)
 	  (derl-go-live)
 	(fsm-fail)))))
 
Index: elisp/net-fsm.el
===================================================================
--- elisp/net-fsm.el	(revision 45)
+++ elisp/net-fsm.el	(working copy)
@@ -55,6 +55,7 @@
     (with-error-cleanup (kill-buffer buf)
       (let ((p (open-network-stream "netfsm" buf host port)))
 	(set-process-coding-system p 'no-conversion 'no-conversion)
+	(set-process-filter-multibyte p nil)
 	p))))
 
 (defun fsm-connect (host port state0 &optional init-arg cont fail-cont buffer)

--=-oAryNgDDvlM+/PcnUWjx
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
--=-oAryNgDDvlM+/PcnUWjx
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Distel-hackers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/distel-hackers

--=-oAryNgDDvlM+/PcnUWjx--