'bzr log > out' crashes

Bug #90946 reported by Andrew Voznytsa
2
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.

https://lists.ubuntu.com/archives/bazaar/2007q1/023094.html

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.

Revision history for this message
Alexander Belchenko (bialix) wrote :

I will check how it works on Windows, but as I remember getpass on Windows connects to stderr.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.