diff options
author | Lars Schneider <larsxschneider@gmail.com> | 2018-04-15 20:16:10 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-04-16 04:40:56 +0200 |
commit | e92d6225361eba5ff34696122d1491dc7ace2a5a (patch) | |
tree | dcb3ac5d5b153ce1052c139c52cacfc4a0706b0e /convert.h | |
parent | convert: add tracing for 'working-tree-encoding' attribute (diff) | |
download | git-e92d6225361eba5ff34696122d1491dc7ace2a5a.tar.xz git-e92d6225361eba5ff34696122d1491dc7ace2a5a.zip |
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>
Diffstat (limited to 'convert.h')
-rw-r--r-- | convert.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -56,6 +56,7 @@ struct delayed_checkout { }; extern enum eol core_eol; +extern char *check_roundtrip_encoding; extern const char *get_cached_convert_stats_ascii(const struct index_state *istate, const char *path); extern const char *get_wt_convert_stats_ascii(const char *path); |