-
- Downloads
convert: add round trip check based on 'core.checkRoundtripEncoding'
UTF supports lossless conversion round tripping and conversions between UTF and other encodings are mostly round trip safe as Unicode aims to be a superset of all other character encodings. However, certain encodings (e.g. SHIFT-JIS) are known to have round trip issues [1]. Add 'core.checkRoundtripEncoding', which contains a comma separated list of encodings, to define for what encodings Git should check the conversion round trip if they are used in the 'working-tree-encoding' attribute. Set SHIFT-JIS as default value for 'core.checkRoundtripEncoding'. [1] https://support.microsoft.com/en-us/help/170559/prb-conversion-problem-between-shift-jis-and-unicode Signed-off-by:Lars Schneider <larsxschneider@gmail.com> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
Showing
- Documentation/config.txt 6 additions, 0 deletionsDocumentation/config.txt
- Documentation/gitattributes.txt 8 additions, 0 deletionsDocumentation/gitattributes.txt
- config.c 5 additions, 0 deletionsconfig.c
- convert.c 77 additions, 0 deletionsconvert.c
- convert.h 1 addition, 0 deletionsconvert.h
- environment.c 1 addition, 0 deletionsenvironment.c
- t/t0028-working-tree-encoding.sh 39 additions, 0 deletionst/t0028-working-tree-encoding.sh
Please register or sign in to comment