Skip to content

Commit 4fc4066

Browse files
committed
Merge branch 'mb/p4-utf16-crlf' into maint
"git p4" working on UTF-16 files on Windows did not implement CRLF-to-LF conversion correctly, which has been corrected. source: <[email protected]> * mb/p4-utf16-crlf: git-p4: fix CR LF handling for utf16 files
2 parents 312d5b7 + 4d35f74 commit 4fc4066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-p4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3148,7 +3148,7 @@ def streamOneP4File(self, file, contents):
31483148
raise e
31493149
else:
31503150
if p4_version_string().find('/NT') >= 0:
3151-
text = text.replace(b'\r\n', b'\n')
3151+
text = text.replace(b'\x0d\x00\x0a\x00', b'\x0a\x00')
31523152
contents = [text]
31533153

31543154
if type_base == "apple":

0 commit comments

Comments
 (0)