Changeset 5244


Ignore:
Timestamp:
Sep 23, 2006, 4:28:20 AM (18 years ago)
Author:
Gary Byers
Message:

Make initial interactive streams use UTF-8 (mostly for debugging utf-8 ...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-1/l1-boot-2.lisp

    r5048 r5244  
    8686                                :sharing :lock
    8787                                :direction :input
    88                                 :interactive (not *batch-flag*)))
    89   (setq *stdout* (make-fd-stream 1 :basic t :direction :output :sharing :lock))
    90 
    91   (setq *stderr* (make-fd-stream 2 :basic t :direction :output :sharing :lock))
     88                                :interactive (not *batch-flag*)
     89                                :encoding :utf-8))
     90  (setq *stdout* (make-fd-stream 1 :basic t :direction :output :sharing :lock :encoding :utf-8))
     91
     92  (setq *stderr* (make-fd-stream 2 :basic t :direction :output :sharing :lock :encoding :utf-8))
    9293  (if *batch-flag*
    9394    (let* ((tty-fd (let* ((fd (fd-open "/dev/tty" #$O_RDWR)))
     
    100101                                          :direction :input
    101102                                          :interactive t
    102                                           :sharing :lock)
    103          *terminal-output* (make-fd-stream tty-fd :basic t :direction :output :sharing :lock)
     103                                          :sharing :lock
     104                                          :encoding :utf-8)
     105         *terminal-output* (make-fd-stream tty-fd :basic t :direction :output :sharing :lock :encoding :utf-8)
    104106         *terminal-io* (make-echoing-two-way-stream
    105107                        *terminal-input* *terminal-output*))
Note: See TracChangeset for help on using the changeset viewer.