use :utf8 symbol directly in external-format
sbcl can use :utf8 as a direct symbol also
This commit is contained in:
parent
c6cf6ee943
commit
bcd9051b14
3 changed files with 3 additions and 3 deletions
|
@ -68,7 +68,7 @@ doesn't exist, use the .coleslawrc in the home directory."
|
||||||
(defun load-config (&optional (repo-dir ""))
|
(defun load-config (&optional (repo-dir ""))
|
||||||
"Find and load the coleslaw configuration from .coleslawrc. REPO-DIR will be
|
"Find and load the coleslaw configuration from .coleslawrc. REPO-DIR will be
|
||||||
preferred over the home directory if provided."
|
preferred over the home directory if provided."
|
||||||
(with-open-file (in (discover-config-path repo-dir) :external-format '(:utf-8))
|
(with-open-file (in (discover-config-path repo-dir) :external-format :utf-8)
|
||||||
(let ((config-form (read in)))
|
(let ((config-form (read in)))
|
||||||
(setf *config* (construct 'blog config-form)
|
(setf *config* (construct 'blog config-form)
|
||||||
(repo *config*) repo-dir)))
|
(repo *config*) repo-dir)))
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
(file-position stream)))))
|
(file-position stream)))))
|
||||||
(read-sequence seq stream)
|
(read-sequence seq stream)
|
||||||
(remove #\Nul seq))))
|
(remove #\Nul seq))))
|
||||||
(with-open-file (in file :external-format '(:utf-8))
|
(with-open-file (in file :external-format :utf-8)
|
||||||
(let ((metadata (parse-metadata in))
|
(let ((metadata (parse-metadata in))
|
||||||
(content (slurp-remainder in))
|
(content (slurp-remainder in))
|
||||||
(filepath (enough-namestring file (repo *config*))))
|
(filepath (enough-namestring file (repo *config*))))
|
||||||
|
|
|
@ -88,7 +88,7 @@ along with any missing parent directories otherwise."
|
||||||
:direction :output
|
:direction :output
|
||||||
:if-exists :supersede
|
:if-exists :supersede
|
||||||
:if-does-not-exist :create
|
:if-does-not-exist :create
|
||||||
:external-format '(:utf-8))
|
:external-format :utf-8)
|
||||||
(write text :stream out :escape nil)))
|
(write text :stream out :escape nil)))
|
||||||
|
|
||||||
(defun get-updated-files (&optional (revision *last-revision*))
|
(defun get-updated-files (&optional (revision *last-revision*))
|
||||||
|
|
Loading…
Add table
Reference in a new issue