diff options
| author | Lars Schneider <larsxschneider@gmail.com> | 2018-04-15 20:16:05 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-04-16 11:40:56 +0900 |
| commit | 10ecb82e4f1f507d5f122e00fd4829b30953f853 (patch) | |
| tree | 58e2245d175a29290fc4405988ab650b5b669207 /builtin/commit.c | |
| parent | utf8: teach same_encoding() alternative UTF encoding names (diff) | |
| download | git-10ecb82e4f1f507d5f122e00fd4829b30953f853.tar.gz git-10ecb82e4f1f507d5f122e00fd4829b30953f853.zip | |
utf8: add function to detect prohibited UTF-16/32 BOM
Whenever a data stream is declared to be UTF-16BE, UTF-16LE, UTF-32BE
or UTF-32LE a BOM must not be used [1]. The function returns true if
this is the case.
This function is used in a subsequent commit.
[1] http://unicode.org/faq/utf_bom.html#bom10
Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions
