Waldek Hebisch | 25 Jul 23:17

Printing space symbol

Hello all,

I am one of developers of computer algebra system called FriCAS
(for more information see http://fricas.sf.net).  Currently
FriCAS works rathe well on top of Closure CL.  However, there
are some problems, one of them below.

I need to print readably symbol with print name consisting of
a single space.  However, it seems that Closure CL sometimes
incorrectly prints such symbols.  More, precisly, when such
symbol is at the end of line then only backlash is printed
(space char is lost) -- which means that space turns into
a newline.

The last version I tried is 'clozurecl-1.2-rc1-linuxx8664.tar.gz'
but the problem was present also in earlier snapshots.

The following code exibits the problem:

(with-open-file (fil "out" :direction :output
                           :if-does-not-exist :create
                           :if-exists :overwrite)
      (let ((*print-readably* t))
         (pprint '(|aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
                    | | | | | | | | | | | | | | | | | | | | | |
 |aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|) fil)))

As a workaround I use the following patch:

--- openmcl/ccl/level-1/l1-io.lisp.bb	2007-08-27 20:47:57.000000000 +0200
(Continue reading)

Gail Zacharias | 27 Jul 21:17

Re: Printing space symbol

This should now be fixed in both the trunk and the 1.2 branch.

At 7/25/2008 05:18 PM, Waldek Hebisch wrote:
>Hello all,
>
>I am one of developers of computer algebra system called FriCAS
>(for more information see http://fricas.sf.net).  Currently
>FriCAS works rathe well on top of Closure CL.  However, there
>are some problems, one of them below.
>
>I need to print readably symbol with print name consisting of
>a single space.  However, it seems that Closure CL sometimes
>incorrectly prints such symbols.  More, precisly, when such
>symbol is at the end of line then only backlash is printed
>(space char is lost) -- which means that space turns into
>a newline.
>
>The last version I tried is 'clozurecl-1.2-rc1-linuxx8664.tar.gz'
>but the problem was present also in earlier snapshots.
>
>The following code exibits the problem:
>
>(with-open-file (fil "out" :direction :output
>                            :if-does-not-exist :create
>                            :if-exists :overwrite)
>       (let ((*print-readably* t))
>          (pprint '(|aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
>                     | | | | | | | | | | | | | | | | | | | | | |
>  |aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|) fil)))
>
(Continue reading)

Waldek Hebisch | 29 Jul 18:27

Re: Printing space symbol

Gail Zacharias wrote:
> This should now be fixed in both the trunk and the 1.2 branch.
> 
> At 7/25/2008 05:18 PM, Waldek Hebisch wrote:
> >I need to print readably symbol with print name consisting of
> >a single space.  However, it seems that Closure CL sometimes
> >incorrectly prints such symbols.

Thanks, I checked out 1.2 branch and it works now for me.

--

-- 
                              Waldek Hebisch
hebisch <at> math.uni.wroc.pl 

Gmane