Previously, latin-1 was incorrectly assumed (bug#70988).
* src/lread.c (readchar): Set multibyte flag.
* test/src/lread-tests.el (lread-function-source): New test.
(cherry picked from commit
553a6c407f28c4faa832c8cda462267ef75bff38)
goto read_multibyte;
}
+ if (multibyte)
+ *multibyte = 1;
+
tem = call0 (readcharfun);
if (!FIXNUMP (tem))
(goto-char (point-min))
(should-error (read (current-buffer)) :type 'end-of-file)))
+(ert-deftest lread-function-source ()
+ (let* ((s '(#x41 #x222a #xff -1))
+ (val (read (lambda () (pop s)))))
+ (should (equal (symbol-name val) "A∪ÿ"))))
+
;;; lread-tests.el ends here