[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] write-char and format ~c strangeness

From: Robert Dodier
Subject: [Gcl-devel] write-char and format ~c strangeness
Date: Sun, 11 Feb 2007 17:26:15 -0700


GCL 2.6.7 on Linux shows the following output:

(format t "~c~%" #\space)
 => Space
(write-char #\space)
 => #\Space

According to CLHS, the correct output hinges on whether #\space
is a "simple character" or not. I spent a few minutes trying to figure
it out, but couldn't get anywhere. Oh well.

SBCL and Clisp both output an empty space for these.
Also, iirc the CLHS has examples which show empty spaces for these.

Maybe someone can look into this.

Thanks very much,
Robert Dodier

reply via email to

[Prev in Thread] Current Thread [Next in Thread]