git-p4: add test case for "Translation of file content failed" error
commitfe18a0f2793b7559d5565bc65b53c7c018de3c21
authorLars Schneider <larsxschneider@gmail.com>
Mon, 21 Sep 2015 10:01:40 +0000 (21 12:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Sep 2015 19:15:12 +0000 (22 12:15 -0700)
treef180abb8a108872435030cc8726f0456027f2d51
parent45733fa93f287fbc04d6a6a3f5a39cc852c5cf50
git-p4: add test case for "Translation of file content failed" error

A P4 repository can get into a state where it contains a file with
type UTF-16 that does not contain a valid UTF-16 BOM. If git-p4
attempts to retrieve the file then the process crashes with a
"Translation of file content failed" error.

More info here: http://answers.perforce.com/articles/KB/3117

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9825-git-p4-handle-utf16-without-bom.sh [new file with mode: 0755]