Don't read files literally.

This causes problems when we read in utf-8 and then try to dump the
contents back out. Utf-8 characters get read in as if they are ascii.
This commit is contained in:
Donald Curtis 2014-05-16 00:47:46 -04:00
parent aec74eff8c
commit 590db54fad

View file

@ -105,7 +105,7 @@ function for access to this function")
"Return the contents of FILE-NAME as a string, or nil if no such file exists."
(when (file-exists-p file-name)
(with-temp-buffer
(insert-file-contents-literally file-name)
(insert-file-contents file-name)
(buffer-substring-no-properties (point-min) (point-max)))))
(defun pb/string-rtrim (str)