fix spell checker encoding

original commit: c75cc48f5cfba3059fe7f245424a4c00f3eb2366
This commit is contained in:
Robby Findler 2012-10-14 18:45:10 -05:00
parent c010d0aca7
commit 9bc24e9d44

View File

@ -33,9 +33,9 @@
c1)
(and (file-exists? c2)
c2)))))
(define aspell? (regexp-match? #rx"aspell" (path->string asp)))
(when asp
(set! aspell-proc (process* asp "-a"))
(set! aspell-proc (apply process* asp "-a" (if aspell? '("--encoding=utf-8") '())))
(define line (read-line (list-ref aspell-proc 0)))
(log-info (format "framework: started speller: ~a" line))