close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 17 years ago

Closed 17 years ago

#549 closed defect (fixed)

TolServerEval fail with expressions containing \n inside

Reported by: Jorge Owned by: Jorge
Priority: highest Milestone:
Component: Interface Version: head
Severity: critical Keywords:
Cc:

Description

The following expresion fails:

Text TolServerEval("localhost", 40000, "WriteLn(\"Hola\nMundo\")")

the output is:

invalid argument size 'WriteLn("Hola'. Should be 21 and it was 13

while executing

"error $str"

("ERROR" arm line 2)
invoked from within

"switch -- [string toupper $cmd] {

ERROR {

error $str

}
ACKPING {

# answer from a PING
log "debug" "process_line : ACKPIN..."

(procedure "process_line" line 17)
invoked from within

"process_line $chan $line"

(procedure "read_channel" line 11)
invoked from within

"read_channel sock7"

(in namespace inscope "::tolclient" script line 1)
invoked from within

"::namespace inscope ::tolclient {read_channel sock7}"
"TIMEOUT"

Change History (2)

comment:1 Changed 17 years ago by Jorge

Status: newassigned

working on it ...

comment:2 Changed 17 years ago by Jorge

Resolution: fixed
Status: assignedclosed

changed communication protocol from line oriented to buffer full.

Changes:

Repository revision: 1.11 /home/cvsroot/tolp/tolsh/tolsh.vfs/lib/tolcomm/tolserver.tcl,v

Repository revision: 1.9 /home/cvsroot/tolp/tolsh/tolsh.vfs/lib/tolcomm/tolclient.tcl,v

Note: See TracTickets for help on using tickets.