Skip to content

convert: add support for different encodings

[email protected] git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v5 Latest7 patches 16 repliesIn review

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7strbuf: remove unnecessary NUL assignment in xstrdup_tolower()strbuf.c+0 -10 replies
2/7strbuf: add xstrdup_toupper()strbuf.c strbuf.h+13 -00 replies
3/7utf8: add function to detect prohibited UTF-16/32 BOMutf8.c utf8.h+33 -00 replies
4/7utf8: add function to detect a missing UTF-16/32 BOMutf8.c utf8.h+29 -03 replies
5/7convert: add 'working-tree-encoding' attributeDocumentation/gitattributes.txt convert.c convert.h +2 more+447 -25 replies
6/7convert: add tracing for 'working-tree-encoding' attributeconvert.c t/t0028-working-tree-encoding.sh+30 -00 replies
7/7Careful with CRLF when using e.g. UTF-16 for working-tree-encodingDocumentation/gitattributes.txt convert.c+18 -68 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/7] convert: add support for different encodings

From: Torsten Bögershausen <[email protected]>

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
Signature · 1 line
2.16.0.rc0.2.g64d3e4d0cc.dirty