[filter "utf16"]
clean = "iconv -c -f utf-16le -t utf-8"
smudge = "iconv -c -f utf-8 -t utf-16le"
required
MAIN.txt filter=utf16
$ file *
project.wscape: Little-endian UTF-16 Unicode text, with CRLF, CR line terminators
MAIN.txt: Little-endian UTF-16 Unicode text, with very long lines, with CRLF line terminators
UI_MAIN.txt: UTF-8 Unicode text, with CRLF line terminators
$ git co -b featureX --track testrepo/featureX
error: external filter 'iconv -c -f utf-8 -t utf-16le' failed 1
error: external filter 'iconv -c -f utf-8 -t utf-16le' failed
fatal: MAIN.txt: smudge filter utf16 failed
On branch master
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: MAIN.txt
no changes added to commit (use "git add" and/or "git commit -a")