Editing error.

This commit is contained in:
Stas Boukarev 2023-01-23 17:34:20 +03:00
parent dff581094b
commit 057188b1f8

View file

@ -1092,14 +1092,14 @@
(format stream "(defvar s \"what? ~A\"~%)" (name-char "GRINNING_FACE"))
(format stream "(sb-ext:exit :code
(if (and (string= (subseq s 0 6) \"what? \") (char= (char s 6) #\\grinning_face)) 0 1))~%"))
(let ((code
(process-exit-code
(run-program
sb-ext:*runtime-pathname*
(list "--core" sb-int:*core-string*
"--noinform" "--no-sysinit" "--no-userinit" "--noprint"
"--disable-debugger"
"--eval" "(setq *default-external-format* :utf16le)"
"--load" script)
:error t))))
(assert (zerop code)))))
(let ((process (run-program
sb-ext:*runtime-pathname*
(list "--core" sb-int:*core-string*
"--noinform" "--no-sysinit" "--no-userinit" "--noprint"
"--disable-debugger"
"--eval" "(setq *default-external-format* :utf16le)"
"--load" script)
:error t)))
#+win32
(process-close process)
(assert (zerop (process-exit-code process))))))