diff options
author | Brandon Casey <casey@nrlssc.navy.mil> | 2009-05-18 18:44:39 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-18 20:53:12 -0700 |
commit | 330db18c0277dcfcf322bb61c688acfb5ddf3867 (patch) | |
tree | f25c13a0efa8356046fc223bdf44bae0a12fe789 /pretty.c | |
parent | 5ae93dfdccfe9457bdb1f54b33c76359f6c3b861 (diff) | |
download | git-330db18c0277dcfcf322bb61c688acfb5ddf3867.tar.gz git-330db18c0277dcfcf322bb61c688acfb5ddf3867.tar.xz |
Use 'UTF-8' rather than 'utf-8' everywhere for backward compatibility
Some ancient platforms (Solaris 7, IRIX 6.5) do not understand 'utf-8', but
all tested implementations understand 'UTF-8'.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pretty.c')
-rw-r--r-- | pretty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -284,7 +284,7 @@ static char *replace_encoding_header(char *buf, const char *encoding) static char *logmsg_reencode(const struct commit *commit, const char *output_encoding) { - static const char *utf8 = "utf-8"; + static const char *utf8 = "UTF-8"; const char *use_encoding; char *encoding; char *out; @@ -881,7 +881,7 @@ char *reencode_commit_message(const struct commit *commit, const char **encoding ? git_log_output_encoding : git_commit_encoding); if (!encoding) - encoding = "utf-8"; + encoding = "UTF-8"; if (encoding_p) *encoding_p = encoding; return logmsg_reencode(commit, encoding); |