Обсуждение: pgsql 0.2 does not work with tcl8.2 ?

Поиск
Список
Период
Сортировка

pgsql 0.2 does not work with tcl8.2 ?

От
"
Дата:
Running tcl8.2.2 on a linux box; pgsql.tcl fails to connect.
On the other hand, it seems to work fine under tcl8.0.

Any hints? Is pgsql.tcl still mantained?
Thanks

Miguel Sofer


RE: pgsql 0.2 does not work with tcl8.2 ?

От
"
Дата:
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


Re: pgsql 0.2 does not work with tcl8.2 ?

От
Valentin Iliev
Дата:
> 
> The problem seems to be with the new unicode internal representation
> of strings in tcl8.2.
> 

I think so.

> A small patch to pgsql0.2: on lines 393 and 800, replace the tests of
> the form
>    if {$a != ""}
> with
>    if {a != "\0"}
> 

I will change this and new version of pgsql will be 0.21.

Valentin Iliev
-------------------------------------------------------- Valentin Iliev    e-mail: vale@aero.vmei.acad.bg    Dept. of
Aeronautics,Tech. univ. of Sofia
 
--------------------------------------------------------