Comment 1 for bug 90946

Revision history for this message
John A Meinel (jameinel) wrote :

Even though it doesn't seem like it at first glance, this is a duplicate of: bug #110204

Basically, the connection to sftp is requiring a prompt for username, but we fail to display a prompt, because we try to get the encoding of sys.stdout, but that is None when doing a redirect.

I don't know if we will be able to prompt a user when they redirect sys.stdout on win32. On Linux I know we use 'getpass' which connects directly to the TTY. Under Windows, I'm not sure it is possible.

So 'bzr log > out' may still fail, but it shouldn't crash.

If we cannot prompt, then I'm guessing it is a fundamental limitation in Windows. One possible workaround would be to implement "log --output=foo" to tell log to directly write to a file rather than using '>' for redirection.