Skip to content

Fix CR/NL error for python on windows#2

Open
simonliedl wants to merge 1 commit intoz00nx:masterfrom
simonliedl:master
Open

Fix CR/NL error for python on windows#2
simonliedl wants to merge 1 commit intoz00nx:masterfrom
simonliedl:master

Conversation

@simonliedl
Copy link
Copy Markdown

On Windows, python replaces newline with carriage-return + newline. Therefore the git credentials don't work, as they appear as "username\r".

They only solution i found is to output a string converted to bytes in binary mode.

On Windows, python replaces newline with carriage-return + newline. Therefore the git credentials don't work, as they appear as "username\r".
@z00nx
Copy link
Copy Markdown
Owner

z00nx commented Nov 13, 2018

@simonliedl thanks for the pull request.
Can you share more details of your environment including windows versions, python versions ?

@simonliedl
Copy link
Copy Markdown
Author

@z00nx of course, sorry for not sharing in the first place:

-> % git --version
git version 2.9.1
-> % python --version
Python 3.6.2

Windows version:
Microsoft Windows 10 Pro 10.0.17134 Build 17134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants