Permalink
Browse files

ENH: Read file in rawmode

A possible fix for #97
  • Loading branch information...
1 parent c19a732 commit 21cdbee54fb7e6e73237ed43ad23f0a9cc883b87 @punchagan committed Oct 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 metaweblog.el
View
@@ -390,7 +390,7 @@ type - mimetype of file deduced from extension."
(let* (base64-str type name)
(save-excursion
(save-restriction
- (with-current-buffer (find-file-noselect file)
+ (with-current-buffer (find-file-noselect file nil t)
(fundamental-mode)
(setq name (file-name-nondirectory file))
(setq base64-str (base64-encode-string (encode-coding-string (buffer-string) 'binary)))

0 comments on commit 21cdbee

Please sign in to comment.