git p4 test: sanitize P4CHARSET

In the tests, p4d is started without using "internationalized mode". Make sure this environment variable is unset, otherwise a mis-matched user setting would break the tests. The error message would be "Unicode clients require a unicode enabled server." [pw: use unset, add commit text] Signed-off-by: Kazuki Saitoh <ksaitoh560@gmail.com> Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

kazuki saitoh committed Aug 10, 2013 at 16:15 UTC 799460316b87c2b0f26c3c0fcd99ae153f9f7358
1 file changed +2 -1
t/lib-git-p4.sh
+2 -1
@@ -48,7 +48,8 @@ P4DPORT=$((10669 + ($testid - $git_p4_test_start)))
48 P4PORT=localhost:$P4DPORT
49 P4CLIENT=client
50 P4EDITOR=:
51 -export P4PORT P4CLIENT P4EDITOR
51 +unset P4CHARSET
52 +export P4PORT P4CLIENT P4EDITOR P4CHARSET
53
54 db="$TRASH_DIRECTORY/db"
55 cli="$TRASH_DIRECTORY/cli"