Skip to content

Commit

Permalink
Fix interning of symbols into wrong package
Browse files Browse the repository at this point in the history
  • Loading branch information
ak-coram committed Jul 18, 2023
1 parent 2711fbd commit 0a926e5
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions chronogram-dist.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
(in-package #:chronogram-dist)

(defun make-chronogram-info (contents dist-dir)
(multiple-value-bind (info language script territory variant)
(chronogram-cldr-parser:parse-cldr contents)
(with-open-file (stream (format nil "~a~{~a~^_~}.lisp"
dist-dir
`(,language
,@(when script
(list script))
,@(when territory
(list territory))
,@(when variant
(list variant))))
:direction :output
:if-exists :supersede
:if-does-not-exist :create)
(let ((*package* (find-package 'chronogram-cldr-parser)))
(let ((*package* (find-package 'chronogram-cldr-parser)))
(multiple-value-bind (info language script territory variant)
(chronogram-cldr-parser:parse-cldr contents)
(with-open-file (stream (format nil "~a~{~a~^_~}.lisp"
dist-dir
`(,language
,@(when script
(list script))
,@(when territory
(list territory))
,@(when variant
(list variant))))
:direction :output
:if-exists :supersede
:if-does-not-exist :create)
(format stream "~s~%" info)))))

(defun make-dist ()
Expand Down

0 comments on commit 0a926e5

Please sign in to comment.