diff options
author | Lars Schneider <larsxschneider@gmail.com> | 2018-04-15 20:16:04 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-04-16 11:40:56 +0900 |
commit | 2f0c4a362c5db677ee392a6a550632bfb22d8319 (patch) | |
tree | ae17d1999ec3d87d4f2f86337e6c5b6e59eb9ac6 /t/t1302-repo-version.sh | |
parent | strbuf: add a case insensitive starts_with() (diff) | |
download | tgif-2f0c4a362c5db677ee392a6a550632bfb22d8319.tar.xz |
utf8: teach same_encoding() alternative UTF encoding names
The function same_encoding() could only recognize alternative names for
UTF-8 encodings. Teach it to recognize all kinds of alternative UTF
encoding names (e.g. utf16).
While we are at it, fix a crash that would occur if same_encoding() was
called with a NULL argument and a non-NULL argument.
This function is used in a subsequent commit.
Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1302-repo-version.sh')
0 files changed, 0 insertions, 0 deletions