OS i/f still tied to old I/O subsystem in SISC 1.16 alpha
Brought to you by:
mradestock,
scgmille
The get-process-stdout function tries to use the
pre-1.16 I/O subsystem. Snippet follows.
--8<----8<----8<----8<----8<----8<--
snoopy:~ > sisc
SISC (1.16.0-alpha)
#;> (import os)
#;> (define ps (spawn-process "cat" '("/etc/passwd")))
#;> (get-process-stdout ps)
Error: undefined variable '<native-input-port>'.
---------------------------
To enable more detailed stack tracing, start SISC with the
-Dsisc.maxStackTraceDepth=16 java option.
---------------------------
Some stack trace entries may have been suppressed. To
see all entries
set the dynamic parameter
suppressed-stack-trace-source-kinds to
'().#;>
--8<----8<----8<----8<----8<----8<--
Logged In: YES
user_id=25869
Fixed in CVS. Also found that open-character-input-port
wasn't producing peekable streams and fixed that.
Logged In: YES
user_id=544263
I just noticed a similar problem for get-process-stdin:
--8<----8<----8<----8<----8<----8<--
snoopy:~ > sisc
SISC (1.16.1-beta)
#;> (import os)
#;> (define ps (spawn-process "cat" '("/etc/passwd")))
#;> (get-process-stdout ps)
#<binary-input-port>
#;> (get-process-stdin ps)
Error: undefined variable 'open-buffered-binary-output-port'.
#;>
--8<----8<----8<----8<----8<----8<--
Logged In: YES
user_id=25869
Indeed, open-buffered-binary-*-port weren't being exported
from the binary-io module as intended. Fixing...
Logged In: YES
user_id=544263
Another function seems to be missing from the toplevel:
open-character-output-port
Logged In: YES
user_id=25869
Fixed that yesterday as well.
Logged In: YES
user_id=544263
I'm attaching test script that show a few regression bugs
from SISC 1.15.x to 1.16 CVS:
- open-character-output-port does not seem to accept an
auto-flush? argument
- open-character-[input|output]-port expect a string (char
encoding) as a parameter, contrary to documentation
- ->jinput-stream, ->joutput-stream, ->jreader, ->jwriter
generate errors
Please see attached file for specific errors along with
tests that do work.
Test script for open-char-*-port and java-io
Logged In: YES
user_id=25869
Fixed in CVS