summaryrefslogtreecommitdiff
path: root/pretty.c
diff options
context:
space:
mode:
authorBrandon Casey <casey@nrlssc.navy.mil>2009-05-18 23:44:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-05-19 03:53:12 (GMT)
commit330db18c0277dcfcf322bb61c688acfb5ddf3867 (patch)
treef25c13a0efa8356046fc223bdf44bae0a12fe789 /pretty.c
parent5ae93dfdccfe9457bdb1f54b33c76359f6c3b861 (diff)
downloadgit-330db18c0277dcfcf322bb61c688acfb5ddf3867.zip
git-330db18c0277dcfcf322bb61c688acfb5ddf3867.tar.gz
git-330db18c0277dcfcf322bb61c688acfb5ddf3867.tar.bz2
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pretty.c b/pretty.c
index a0ef356..e5328da 100644
--- a/pretty.c
+++ b/pretty.c
@@ -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);