summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2021-03-04 15:15:05 +0100
committerBastien Nocera <hadess@hadess.net>2021-03-04 15:15:14 +0100
commit50239b7cfc54d288c6332a59caceb707df1c4f71 (patch)
tree0108c16255d4bb373f614ac1be71928f3432e95d
parentd72d98383a77ff8d0a9c0728d7db5e8f917cfed2 (diff)
downloadtotem-pl-parser-50239b7cfc54d288c6332a59caceb707df1c4f71.tar.gz
Revert "plparser: Ignore case for UTF-8 encoding check in XML documents"
Incorrect commit message. This reverts commit de23ed726be65424c05d18c2fba3054b68bb8666.
-rw-r--r--plparse/totem-pl-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index dc34a23..9ad3c02 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -1874,7 +1874,7 @@ totem_pl_parser_parse_xml_relaxed (char *contents,
break;
}
- if (encoding == NULL || g_ascii_strcasecmp (encoding, "UTF-8") == 0)
+ if (encoding == NULL || g_str_equal (encoding, "UTF-8") != FALSE)
return doc;
xml_parser_free_tree (doc);