gcl-devel
[Top][All Lists]
Advanced

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

[Gcl-devel] Re: characters ?


From: Camm Maguire
Subject: [Gcl-devel] Re: characters ?
Date: 26 Mar 2006 18:12:27 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings!  Thanks!  Done!

Take care,

Robert Boyer <address@hidden> writes:

> > (char-code (read-from-string (with-output-to-string (s) (prin1   (code-char 
> > 28) s))))
> 
> I believe that the fix is to change prin1 so that when it prin1s character 28
> it should print out five bytes, #\^\\, i.e., (35 92 94 92 92), whereas it now
> prints out just four:  #\^\
> 
> That last \ wants more to eat.  The first \ eats the caret, but continuing on
> the next \ needs more to eat.
> 
> (char-code 
>   (read-from-string 
>     (with-output-to-string (s)
>        (prin1 (code-char 28) s)
>        (write-char #\\ s))))
> => 28
> 
> 
> 
> 

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




reply via email to

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