CL-USER> (princ-to-string '("foo" "bar")) ; which is used
> "(foo bar)"
CL-USER> (prin1-to-string '("foo" "bar")) ; which should be used
> "(\"foo\" \"bar\")"
The problem is that it's not possible to save a lisp datastructure
(contaning strings) and read it back with 'read-from-string'.
This commit replaces the 'princ-to-string' with 'prin1-to-string' to
fix the problem.
On insertion of Lisp objects, strings are inserted as symbols, because 'princ-to-string' won't enclose strings with quotation marks.
for example:
but it should be:
thats because:
The problem is that it's not possible to save a lisp datastructure (contaning strings) and read it back with 'read-from-string'. This commit replaces the 'princ-to-string' with 'prin1-to-string' to fix the problem.