Anonymous avatar Anonymous committed 0678560

Avoid corruption with virtual folders, vm. Thank you Julian Bradfield!

Comments (0)

Files changed (2)

+2009-09-15  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* lisp/vm-virtual.el (vm-build-virtual-message-list): 
+	Merge Julian Bradfield's change of
+	slrnh1ihb5.cmt.jcb@krk.inf.ed.ac.uk , preventing corruption with
+	UTF-8 coding systems and virtual folders.
+
 2008-08-25  Norbert Koch  <viteno@xemacs.org>
 
 	* Makefile (VERSION): XEmacs package 8.07 released.

lisp/vm-virtual.el

 			 ;; set enable-local-variables to nil
 			 ;; for newer Emacses
 			 (let ((inhibit-local-variables t)
+                               (coding-system-for-read
+                                (vm-binary-coding-system))
 			       (enable-local-eval nil)
 			       (enable-local-variables nil))
 			   (find-file-noselect folder)))))
 	    (set-buffer (or (and (bufferp folder) folder)
 			    (vm-get-file-buffer folder)
 			    (let ((inhibit-local-variables t)
+                                  (coding-system-for-read
+                                   (vm-binary-coding-system))
 				  (enable-local-eval nil)
 				  (enable-local-variables nil))
 			      (find-file-noselect folder))))
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.