From: Torsten Bögershausen <tboegi@xxxxxx> Take V4 from Lars, manually integrated the V2 squash patch, so a review would be good. Add my "comments" as a patch, see 7/7 (and this is more like an RFC) This needs to go on top of tb/crlf-conv-flags Lars Schneider (6): strbuf: remove unnecessary NUL assignment in xstrdup_tolower() strbuf: add xstrdup_toupper() utf8: add function to detect prohibited UTF-16/32 BOM utf8: add function to detect a missing UTF-16/32 BOM convert: add 'working-tree-encoding' attribute convert: add tracing for 'working-tree-encoding' attribute Torsten Bögershausen (1): Careful with CRLF when using e.g. UTF-16 for working-tree-encoding Documentation/gitattributes.txt | 63 +++++++++++ convert.c | 233 ++++++++++++++++++++++++++++++++++++++- convert.h | 1 + sha1_file.c | 2 +- strbuf.c | 13 ++- strbuf.h | 1 + t/t0028-working-tree-encoding.sh | 198 +++++++++++++++++++++++++++++++++ utf8.c | 37 +++++++ utf8.h | 25 +++++ 9 files changed, 567 insertions(+), 6 deletions(-) create mode 100755 t/t0028-working-tree-encoding.sh -- 2.16.0.rc0.2.g64d3e4d0cc.dirty