readline: fix broken registration of "mzscheme" as name

Maybe it should be "racket", instead, but leaving as "mzscheme"
in case anyone has customizations using that name.
This commit is contained in:
Matthew Flatt 2014-02-28 15:27:54 -07:00
parent e231718075
commit 57fb95e0a8

View File

@ -108,7 +108,11 @@
(malloc (add1 (bytes-length cur)) cur 'raw)))))
complete))
(set-ffi-obj! "rl_readline_name" libreadline _bytes #"mzscheme")
(set-ffi-obj! "rl_readline_name" libreadline _pointer
(let ([s #"mzscheme"])
(define m (malloc (add1 (bytes-length s)) 'atomic-interior))
(memcpy m s (add1 (bytes-length s)))
m))
;; need to capture the real input port below
(define real-input-port (current-input-port))