Comment 18 for bug 592083

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 592083] Re: UnicodeDecodeError in get_password if user name is unicode

Alexey Gaynulin пишет:
> Alexander, please:
>
> including this traceback and a description of the problem.
> **** entering debugger
>> c:\encodings\cp866.pyo(12)encode()
> (Pdb)
> (Pdb) print repr(input)
> 'SSH \xc0\xeb\xe5\xea\xf1\xe5\<email address hidden> password: '
> (Pdb)
>

Ha! finally we get to the root of the problem!

OK, so \xc0\xeb\xe5\xea\xf1\xe5\<email address hidden> string is actually

Алексей@bazaar.09248.ru in CP1251.

So, my best guess that bzr uses your windows login name (Алексей) as the
username to login to your sftp server. And because of non-ascii
characters you got this traceback.

We need to fix this in bzr.

But for you there is very simple workaround: specify your login name on
remote aftp server with following syntax:

sftp://<email address hidden>/...

and it will work.

Also you can set this name in authentication.conf as following:

[bazaar.09248.ru]
host = bazaar.09248.ru
name = xxx
scheme = ssh

and then bzr will use this predefined name even if you don't specify it
in the sftp:// URL.

Thank you for bug report and your help in debugging.
I will need more of your help tomorrow to understand why QBzr failing too.