Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#660 Read-preserving-whitespace eats up whitespace character (Vol. 2)

open
nobody
None
5
2013-08-27
2013-08-27
Dan.BTown
No

Note: The bug described below is almost identical to
* http://sourceforge.net/p/clisp/bugs/445/
except that it does not only affect quoted representations.

--- Description: ---

When reading from a character stream containing, for example, "n →x", a call on read-preserving-whitespace (correctly returning the symbol N) places the reader on #\→ instead of #\Space. The same holds regardless of the symbols, numbers, or whatever involved.

When a second whitespace is inserted, read-preserving-whitespace comes to sit on the second whitespace character after reading N.

Like in the bug report mentiond above, a cross test of this situation in SBCL produces the correct behaviour.

--- Operating System: ---

Fedora 18 Linux

--- uname -a ---

Linux [...] 3.10.9-100.fc18.i686 #1 SMP Wed Aug 21 18:49:36 UTC 2013 i686 i686 i386 GNU/Linux

--- gcc --version ---

gcc (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8)

--- glibc Package ---

glibc-2.16-33.fc18.i686

--- clisp --version ---

GNU CLISP 2.49 (2010-07-07) (built on buildvm-29.phx2.fedoraproject.org [10.5.125.152])
Software: GNU-C 4.7.1 20120720 (Red Hat 4.7.1-5)
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -I/usr/include/readline5 -I/usr/include/libsvm -I/usr/include/libdb4 -Wa,--noexecstack -L/usr/lib/readline5 -L/usr/lib/libdb4 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -fexpensive-optimizations -falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_FFI -DDYNAMIC_MODULES -I. -L/usr/lib/readline5 -L/usr/lib/libdb4 -Wl,-z,noexecstack /builddir/build/BUILD/clisp-2.49/readline/lib/libreadline.so -L/builddir/build/BUILD/clisp-2.49/readline/lib -lncurses -ldl /usr/lib/libavcall.a /usr/lib/libcallback.a -L/usr/lib -lsigsegv libgnu_cl.a
SAFETY=0 HEAPCODES LINUX_NOEXEC_HEAPCODES GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY
libsigsegv 2.10
libreadline 5.2
libffcall 1.11
Features:
(READLINE REGEXP SYSCALLS I18N LOOP COMPILER CLOS MOP CLISP ANSI-CL COMMON-LISP LISP=CL INTERPRETER SOCKETS
GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN FFI GETTEXT UNICODE BASE-CHAR=CHARACTER PC386 UNIX)
C Modules: (clisp i18n syscalls regexp readline)

Discussion