[ clisp-Bugs-2022362 ] Problem :external-format :dos and (setf stream-element-type)

View: New views
1 Messages — Rating Filter:   Alert me  

[ clisp-Bugs-2022362 ] Problem :external-format :dos and (setf stream-element-type)

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bugs item #2022362, was opened at 2008-07-19 21:44
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101355&aid=2022362&group_id=1355

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: clisp
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Kim-Minh KAPLAN (kmkaplan)
Assigned to: Bruno Haible (haible)
Summary: Problem :external-format :dos and (setf stream-element-type)

Initial Comment:
I use ext:with-http-input to download binary data from the web.  While upgrading from CLisp 2.41 on Linux things started to go wrong.  I tracked the problem down to the following:

    (with-open-file (f "/tmp/foo.txt" :external-format :dos
                       :direction :io :if-exists :supersede)
      (write-line "1" f)
      (file-position f 0)
      (read-line f)
      (setf (stream-element-type f) '(unsigned-byte 8))
      (assert (null (read-byte f nil))))

Since CLisp 2.42 it does not work anymore.


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101355&aid=2022362&group_id=1355

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
clisp-devel mailing list
clisp-devel@...
https://lists.sourceforge.net/lists/listinfo/clisp-devel
LightInTheBox - Buy quality products at wholesale price