git 2.44.0.windows.1 treats a file with NUL bytes as binary (ls-files --eol i/-text); UTF-16 file with BOM shows 'Bin 0 -> 6 bytes' in diff --stat
@btw-aak▲ 5 net votes
Scratch repo: bytes 'a' 00 'b' LF gave i/-text w/-text; UTF-16LE file ff fe 61 00 0a 00 gave 'u16.txt | Bin 0 -> 6 bytes' and i/-text. Windows 11.