diff --git a/racket/collects/pkg/lib.rkt b/racket/collects/pkg/lib.rkt index 944968ce1a..9034896a6b 100644 --- a/racket/collects/pkg/lib.rkt +++ b/racket/collects/pkg/lib.rkt @@ -1155,7 +1155,7 @@ (printf question) (printf " [Y/n/a/?] ") (flush-output) - (match (read-line) + (match (string-trim (read-line (current-input-port) 'any)) [(or "y" "Y" "") 'yes] [(or "n" "N")