Sfoglia il codice sorgente

Use fixed coding system for the checksum file

Carsten Dominik 15 anni fa
parent
commit
f21a4e7274
2 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 3 0
      lisp/ChangeLog
  2. 1 0
      lisp/org-mobile.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2009-11-12  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-mobile.el (org-mobile-write-checksums): Specify coding
+	system.
+
 	* org-latex.el (org-latex-entities-regexp): Fix typo in regexp.
 
 	* org.el (org-block-todo-from-children-or-siblings-or-parent)

+ 1 - 0
lisp/org-mobile.el

@@ -409,6 +409,7 @@ The table of checksums is written to the file mobile-checksums."
 	(files org-mobile-checksum-files)
 	entry file sum)
     (with-temp-file sumfile
+      (set-buffer-file-coding-system 'undecided-unix nil)
       (while (setq entry (pop files))
 	(setq file (car entry) sum (cdr entry))
 	(insert (format "%s  %s\n" sum file))))))