Raymond Toy pushed to branch issue-139a-default-external-format-utf8 at cmucl / cmucl
Commits:
-
86b4483e
by Raymond Toy at 2022-09-23T16:46:25-07:00
1 changed file:
Changes:
... | ... | @@ -587,7 +587,11 @@ |
587 | 587 | (assert-eql :utf-8 (stream-external-format sys:*stdin*))
|
588 | 588 | (assert-eql :utf-8 (stream-external-format sys:*stdout*))
|
589 | 589 | (assert-eql :utf-8 (stream-external-format sys:*stderr*))
|
590 | - (assert-eql :utf-8 (stream-external-format sys:*tty*))
|
|
590 | + ;; *tty* can either be an fd-stream, in which case the format is
|
|
591 | + ;; utf8, or a two-way-stream, in which case it is :default.
|
|
592 | + (if (typep sys:*tty* 'two-way-stream)
|
|
593 | + (assert-eql :default (stream-external-format sys:*tty*))
|
|
594 | + (assert-eql :utf-8 (stream-external-format sys:*tty*)))
|
|
591 | 595 | ;; Check that printing to *standard-output* is correctly encoded.
|
592 | 596 | (dribble "test-format.txt")
|
593 | 597 | ;; Print a Greek lower-case alpha character
|