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 filesmaint
commit
745af8c7b5
|
@ -3148,7 +3148,7 @@ class P4Sync(Command, P4UserMap):
|
||||||
raise e
|
raise e
|
||||||
else:
|
else:
|
||||||
if p4_version_string().find('/NT') >= 0:
|
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]
|
contents = [text]
|
||||||
|
|
||||||
if type_base == "apple":
|
if type_base == "apple":
|
||||||
|
|
Loading…
Reference in New Issue