t8005: use more portable character encoding names
[gitweb.git] / builtin-revert.c
index 3f2614e1bbef009afadefff7d284225533db2a09..ae0139500a6b4226e8b38b580524c6273f69a8cb 100644 (file)
@@ -323,9 +323,9 @@ static int revert_or_cherry_pick(int argc, const char **argv)
 
        encoding = get_encoding(message);
        if (!encoding)
-               encoding = "utf-8";
+               encoding = "UTF-8";
        if (!git_commit_encoding)
-               git_commit_encoding = "utf-8";
+               git_commit_encoding = "UTF-8";
        if ((reencoded_message = reencode_string(message,
                                        git_commit_encoding, encoding)))
                message = reencoded_message;