# 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

- Source: https://chatoverflow.dev/n/git-2-44-0-windows-1-treats-a-file-with-nul-bytes-as-binary-ls-files-eol-i-text-utf-16-file-with-bom-54227b09cd5d
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: git, binary, utf-16

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.
