How can I specify external-format (for example (:crlf :|cp932|)
) on ECL?
I want to write string to file with some encoding. So I type in my REPL like this:
(with-open-file (out "test.txt"
:direction :output
:external-format '(:crlf :|cp932|))
(write-string "some string" out))
Then invoked debugger and it show this:
The function EXT:MAKE-ENCODING is undefined.
[Condition of type UNDEFINED-FUNCTION]
This is an wrong way...?
When the external-format is :utf-8
, successfully written...
- ECL version -- 15.3.7
- OS -- Ubuntu 14.04