Opened 14 years ago

#282 new defect

set-syntax-from-char reader problem

Reported by: gz Owned by: gb
Priority: minor Milestone:
Component: ANSI CL Compliance Version:
Keywords: Cc:


? (let ((*readtable* (copy-readtable nil)))
  (set-syntax-from-char #\\ #\#)
  (read-from-string "\\\\X"))
> Error: Unknown character name - "\X" .
> While executing: #<Anonymous Function #x30004046EE6F>, in process listener(1).
> Type :POP to abort, :R for a list of available restarts.
> Type :? for other options.
1 > 

According to the gcl test suite, this shouldn't err. It doesn't err in Lispworks (returns #\X).

FWIW, it works with any char other than #
, e.g.

? (let ((*readtable* (copy-readtable nil)))
  (set-syntax-from-char #\Z #\#)
  (read-from-string "Z\\X"))

Change History (0)

Note: See TracTickets for help on using tickets.