The testsuite of mod_rivet was adapted to work with Tcl9.0 and the utf-8
locales. The latter is a now requirement for running the tests.
The strict encoding handling introduced with Tcl9.0 and the
incompatibility of the option -encoding in 'chan configure' or
'fconfigure' demanded a more exact handling of channel options when
sending binary data. Therefore mod_rivet was endowed with two new
commands ::rivet::write_binary and ::rivet::with_binary_output.
::rivet::with_binary_output accepts as an argument a script and within
its scope the stdout is configured to consistently send binary data. The
scoped execution restores the text oriented channel setting also in case
of errors. The command ::rivet::write_binary is a convenience wrapper
for simple sending of binary data and it's equivalent to writing
::rivet::with_binary_output { puts -nonewline $binary_data }
-- Massimo
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]