diff options
author | Lars Schneider <larsxschneider@gmail.com> | 2018-04-15 21:16:04 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-04-16 05:40:56 +0300 |
commit | 2f0c4a362c5db677ee392a6a550632bfb22d8319 (patch) | |
tree | ae17d1999ec3d87d4f2f86337e6c5b6e59eb9ac6 /utf8.h | |
parent | 66b8af3e124a0c9dbad05f40c2f6d27614f34349 (diff) |
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 'utf8.h')
0 files changed, 0 insertions, 0 deletions