[Top][All Lists]

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

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

From: Camm Maguire
Subject: [Gcl-devel] write-char and format ~c strangeness
Date: Mon, 05 Mar 2007 14:11:34 -0500
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (Unebigory ōmae) APEL/10.3 Emacs/21.2 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI)

Greetings!  I think this has been fixed in cvs head.  Please let me
know if this is critical to you for 2.6.8.

(format t "a~cb~%" #\space)
a b

>(write-char #\space)

>(write-char #\Space)


This follows clisp from what I can tell.

Camm Maguire                                            address@hidden
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

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]