open output files in text mode

(cherry picked from commit 88e0631c71)
This commit is contained in:
Matthias Felleisen 2011-02-18 13:32:28 -05:00 committed by Ryan Culpepper
parent 8061414c1a
commit 8e723f1721

View File

@ -124,6 +124,7 @@
(let ([result (not (file-exists? f))])
(with-output-to-file f
(lambda () (printf "~a" str))
#:mode 'text
#:exists 'replace)
f))