Merge branch 'mh/notes-string-list'
[gitweb.git] / notes.c
diff --git a/notes.c b/notes.c
index b823701d90fd59d2021779d26b05500a72d0bebe..19b0eaada28ffc603d0bbc1914303fd1de6bf22c 100644 (file)
--- a/notes.c
+++ b/notes.c
@@ -1220,7 +1220,7 @@ static void format_note(struct notes_tree *t, const unsigned char *object_sha1,
        }
 
        if (output_encoding && *output_encoding &&
-                       strcmp(utf8, output_encoding)) {
+           !is_encoding_utf8(output_encoding)) {
                char *reencoded = reencode_string(msg, output_encoding, utf8);
                if (reencoded) {
                        free(msg);