Python, Fabric, Windows command line adds weird ^@ (caret-at) symbols during input

Viewed 251

I have a remote Ubuntu server VPS, which I connect and do commands via fabric.

I using Windows PC to connect to this remote VPS, with this commands:

@task
def git_pull():
    """
    """
    run("cd ~/{}/; git pull".format(env.repo_name))

When I run this command, it promts me to write my Git's login and password.

When I try to input them it writes them like this:

(virtualenv) D:\path\to\project\fabfile>fab common.git_pull
[1.2.3.4] Executing task 'common.git_pull'
[1.2.3.4] run: cd ~/project/; git pull
[1.2.3.4] out: Username for 'https://git.example.com': u^@s^@e^@r^@

As you can see when I try to write user it writes it as u^@s^@e^@r^@

It appends this weird caret-at ^@symbols

Why windows fabric appends these weird ^@ symbols?

Is it because of paramiko which is being used by fabric?

I thought this happening because of different encodings and I used chcp command and it still appends these extra symbols.

0 Answers
Related