aboutsummaryrefslogtreecommitdiff
path: root/t/t7519
diff options
context:
space:
mode:
authorBen Peart <benpeart@microsoft.com>2017-10-04 08:33:39 -0400
committerJunio C Hamano <gitster@pobox.com>2017-10-05 10:12:35 +0900
commit614a718a797e04fb037b25371896f910e464b671 (patch)
tree718441f95d7f964c6e854b147fefdc5c50b3a0c0 /t/t7519
parent2a387b17c5bc5e0872bed352a41a2b312ea86f9b (diff)
downloadgit-614a718a797e04fb037b25371896f910e464b671.tar.gz
git-614a718a797e04fb037b25371896f910e464b671.tar.xz
fsmonitor: preserve utf8 filenames in fsmonitor-watchman log
Update the test fsmonitor-watchman integration script to properly preserve utf8 filenames when outputting the .git/watchman-output.out log file. Signed-off-by: Ben Peart <benpeart@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7519')
-rwxr-xr-xt/t7519/fsmonitor-watchman1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t7519/fsmonitor-watchman b/t/t7519/fsmonitor-watchman
index 51330f8b3..a3e30bf54 100755
--- a/t/t7519/fsmonitor-watchman
+++ b/t/t7519/fsmonitor-watchman
@@ -129,6 +129,7 @@ sub launch_watchman {
"Falling back to scanning...\n" if $o->{error};
open ($fh, ">", ".git/watchman-output.out");
+ binmode $fh, ":utf8";
print $fh @{$o->{files}};
close $fh;