Skip to content
Tcl Source Code View Ticket
Login

View Ticket

squashes bug 612786

Closed / Accepted612788ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-09-22 10:57:32
diff -c /usr/local/lib/tcl8.4/tcltest2.2/tcltest.tcl
tcltest.tcl
*** /usr/local/lib/tcl8.4/tcltest2.2/tcltest.tcl      
 Sat Sep 14 18:17:09 2002
--- tcltest.tcl Sun Sep 22 12:40:43 2002
***************
*** 1474,1479 ****
--- 1474,1480 ----
                # return [Puts -nonewline [lindex $args
end]]
            } else {
                set channel [lindex $args 0]
+               set newline \n
            }
        }
        3 {
***************
*** 1481,1486 ****
--- 1482,1488 ----
                # Both -nonewline and channelId are
specified, unless
                # it's an error.  -nonewline is
supposed to be argv[0].
                set channel [lindex $args 1]
+               set newline {}
            }
        }
      }
***************
*** 1488,1498 ****
      if {[info exists channel]} {
        if {[string equal $channel [[namespace
parent]::outputChannel]]
                || [string equal $channel stdout]} {
!           append outData [lindex $args end]\n
            return
        } elseif {[string equal $channel [[namespace
parent]::errorChannel]]
                || [string equal $channel stderr]} {
!           append errData [lindex $args end]\n
            return
        }
      }
--- 1490,1500 ----
      if {[info exists channel]} {
        if {[string equal $channel [[namespace
parent]::outputChannel]]
                || [string equal $channel stdout]} {
!           append outData [lindex $args end]$newline
            return
        } elseif {[string equal $channel [[namespace
parent]::errorChannel]]
                || [string equal $channel stderr]} {
!           append errData [lindex $args end]$newline
            return
        }
      }
dgpplain2002-09-23 00:56:09
Logged In: YES 
user_id=80530

Patch applied for 2.2.1
Log in (anonymous is fine) to add a comment.