Skip to content

Commit 614a718

Browse files
benpeartgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2a387b1 commit 614a718

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/t7519/fsmonitor-watchman

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ sub launch_watchman {
129129
"Falling back to scanning...\n" if $o->{error};
130130

131131
open ($fh, ">", ".git/watchman-output.out");
132+
binmode $fh, ":utf8";
132133
print $fh @{$o->{files}};
133134
close $fh;
134135

0 commit comments

Comments
 (0)