'bzr log > out' crashes
Bug #90946 reported by
Andrew Voznytsa
This bug report is a duplicate of:
Bug #110204: TestUiFactory use sys.stdout for password prompt.
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
New
|
Undecided
|
Unassigned |
Bug Description
'bzr log > out' crashes crashes on WinXP SP2.
bzr is executed in working tree which was created by lightweight checkout from shared repository hosted on sftp. 'bzr log' works fine.
To post a comment you must log in.
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.