Ticket #58 (closed defect: fixed)
UTF-16 buffering problem
| Reported by: | rtoy | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Unicode | Version: | 2012-04 |
| Keywords: | Cc: |
Description
The following code should not cause errors:
(with-open-file (s "test.txt" :direction :output :external-format :utf-16)
(dotimes (i 300)
(write-char (code-char i) s)))
(with-open-file (s "test.txt" :direction :input :external-format :utf-16)
(dotimes (i 300)
(let ((ch (read-char s nil nil)))
(unless (= i (char-code ch))
(format t "Error at ~D: ~S, ~4X~%" i ch (char-code ch))))))
Change History
Note: See
TracTickets for help on using
tickets.
