From: Ben Peart Date: Wed, 4 Oct 2017 12:33:39 +0000 (-0400) Subject: fsmonitor: preserve utf8 filenames in fsmonitor-watchman log X-Git-Tag: v2.16.0-rc0~112^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/614a718a797e04fb037b25371896f910e464b671 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t7519/fsmonitor-watchman b/t/t7519/fsmonitor-watchman index 51330f8b3d..a3e30bf54f 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;