Home > Archive > Tcl > January 2006 > Expect with windows problem
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Expect with windows problem
|
|
| zhe@foundrynet.com 2006-01-27, 9:57 pm |
|
Hello, all:
I just installed ActiveTcl 8.4.12 with Expect on my desktop with
win2000 professional OS, when I tried very basic thing, it does not
work, below is my procedures:
% set tcl_patchLevel
8.4.12
% package require Expect
5.43
% spawn ftp zhenwulinux
1724
% expect
??????????????????????%?????8????????????????????????????????????????
At this monment, the cmd window is dead, no response to any input, even
Ctrl-c, the only thing can do is closing this window.
if I changed to old expect for NT, the result is like below and that is
what I need.
% set tcl_patchLevel
8.0
% spawn ftp zhenwulinux
spawn ftp zhenwulinux
2724
% expect
Connected to zhenwulinux.foundrynet.com.
220 zhenwulinux FTP server (Version wu-2.6.2-8) ready.
User (zhenwulinux.foundrynet.com:(none))
Anyone knows what is wrong? Anything else I should do? thanks.
/zhenwu
| |
| Jeff Hobbs 2006-01-28, 7:05 pm |
| zhe@foundrynet.com wrote:
> I just installed ActiveTcl 8.4.12 with Expect on my desktop with
> win2000 professional OS, when I tried very basic thing, it does not
> work, below is my procedures:
...
> At this monment, the cmd window is dead, no response to any input, even
> Ctrl-c, the only thing can do is closing this window.
This is actually a problem introduced by changes in the Tcl core
8.4.12 to support unicode NT consoles. I discussed the exact
issue on the expect mailing list, but if you revert to ActiveTcl
8.4.11.2 then you won't have this problem. If you can compile
your own Tcl, I can also point out which change in the core to
revert. We will have to figure out how to fix this for 8.4.13.
It may be that Expect for Windows needs to handle the unicode
console bits as well, but it should work both ways regardless.
--
Jeff Hobbs, The Tcl Guy
http://www.ActiveState.com/, a division of Sophos
|
|
|
|
|