2006-10-23 Daiki Ueno <ueno@unixuser.org>
+ * mixi.el (mixi-curl-retrieve): Make the temp buffer multibyte.
+
+2006-10-23 Daiki Ueno <ueno@unixuser.org>
+
* mixi.el (mixi-curl-retrieve): New function.
(mixi-retrieve-function): Don't use NOERROR arg of require.
(defun mixi-curl-retrieve (url &optional post-data)
"Retrieve the URL and return gotten strings."
(with-temp-buffer
+ (if (fboundp 'set-buffer-multibyte)
+ (set-buffer-multibyte nil))
(let ((orig-mode (default-file-modes))
+ (coding-system-for-read 'binary)
+ (coding-system-for-write 'binary)
process ret)
(unwind-protect
(progn
(unless (looking-at "HTTP/[0-9]+\\.[0-9]+ 200")
(error (mixi-message "Cannot retrieve")))
(delete-region (point) (re-search-forward "\r?\n\r?\n"))
- (setq ret (decode-coding-string (buffer-substring (point) (point-max))
- mixi-coding-system))
+ (setq ret (decode-coding-string (buffer-string) mixi-coding-system))
(mixi-retrieve-1 ret url post-data))))
(defconst mixi-my-id-regexp