X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fexternal-format.impure.lisp;h=bd521f8ee53970de55a9bed263458a185c67cbc6;hb=219cc40793f9c82fb943b29a1846f898f4f9de1e;hp=11586b9f7fa4226f077de58af9181f8f0a4f6336;hpb=eb65b71f52bcc7067414d692ae2f127d742a7ef5;p=sbcl.git diff --git a/tests/external-format.impure.lisp b/tests/external-format.impure.lisp index 11586b9..bd521f8 100644 --- a/tests/external-format.impure.lisp +++ b/tests/external-format.impure.lisp @@ -1020,5 +1020,18 @@ (handler-case (octets-to-string octets :external-format :bad-format) (error (e) e)))))) + +(with-test (:name :lp713063) + (with-open-file (f *test-path* + :direction :output + :external-format '(:euc-jp :replacement #\?) + :if-exists :supersede) + (write-string (make-string 3 :initial-element #\horizontal_bar) f)) + (assert (equal "???" + (with-open-file (f *test-path* + :direction :input + :external-format :euc-jp) + (read-line f)))) + (delete-file *test-path*)) ;;;; success