Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. (defun set-terminal-encoding (encoding)
  2. #-(and ccl (not swank)) (declare (ignore encoding))
  3. #+(and ccl (not swank))
  4. (mapc (lambda (stream)
  5.  
  6. (setf (ccl::stream-external-format stream)
  7. (ccl:make-external-format :domain nil
  8. :character-encoding encoding
  9. :line-termination
  10. #+unix :unix
  11. #+windows :windows
  12. #-(or unix windows) :unix)))
  13. (list (two-way-stream-input-stream *terminal-io*)
  14. (two-way-stream-output-stream *terminal-io*)))
  15. (values))
  16.  
  17. (set-terminal-encoding :iso-8859-1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement