summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-07-27 18:16:55 +0200
committerJunio C Hamano <gitster@pobox.com>2022-07-27 18:16:55 +0200
commit745af8c7b5506f17516e21629386191acb26aae7 (patch)
tree4cc641f92759263a97e2fe83ea40c0ed60a13c55
parentMerge branch 'mb/p4-fixes' (diff)
parentgit-p4: fix CR LF handling for utf16 files (diff)
downloadgit-745af8c7b5506f17516e21629386191acb26aae7.tar.xz
git-745af8c7b5506f17516e21629386191acb26aae7.zip
Merge branch 'mb/p4-utf16-crlf'
"git p4" working on UTF-16 files on Windows did not implement CRLF-to-LF conversion correctly, which has been corrected. * mb/p4-utf16-crlf: git-p4: fix CR LF handling for utf16 files
-rwxr-xr-xgit-p4.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-p4.py b/git-p4.py
index 8f20d15f27..a26f450893 100755
--- a/git-p4.py
+++ b/git-p4.py
@@ -3148,7 +3148,7 @@ class P4Sync(Command, P4UserMap):
raise e
else:
if p4_version_string().find('/NT') >= 0:
- text = text.replace(b'\r\n', b'\n')
+ text = text.replace(b'\x0d\x00\x0a\x00', b'\x0a\x00')
contents = [text]
if type_base == "apple":