You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by Massimo Manghi <ma...@rivetweb.org> on 2026/07/03 10:36:37 UTC

Rivet 3.3.0 tests and new commands

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: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org