The problem seems to be with the new unicode internal representation
of strings in tcl8.2.
A small patch to pgsql0.2: on lines 393 and 800, replace the tests of
the form if {$a != ""}
with if {a != "\0"}
Everything seems to work fine after that ...
Miguel Sofer