[Ecls-list] String printing error?
Juan Jose Garcia Ripoll
lisp at arrakis.es
Fri Feb 4 07:57:35 UTC 2005
Julian Stecklina wrote:
> <>On Fri, 04 Feb 2005 16:40:00 +0100
> Juan Jose Garcia Ripoll <lisp at arrakis.es> wrote:
>
>> > (setf *A* '(#\a #\b #\c #\Return #\d #\e))
>>(#\a #\b #\c #\Return #\d #\e)
>> > (coerce *A* 'string)
>>de"c
>>
>Confusing...
>
Well, characters are sent in raw format to the output stream. Nothing is
done to escape the character #\Return. Hence, your terminal first prints
#\", #\a, #\b, #\c and then returns to the beginning of the line because
of the #\Return, and continues printing: #\d, #\e, #\".
What I wonder is why you got the #\Return in the first place. Maybe you
are connecting to a Mac?
It seems there should be a way to tell ECL different newline-character
conventions for different streams...
Juanjo
More information about the ecl-devel
mailing list