[totem-pl-parser/wip/hadess/more-encoding: 1/6] Revert "plparser: Ignore case for UTF-8 encoding check in XML documents"




commit 50239b7cfc54d288c6332a59caceb707df1c4f71
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Mar 4 15:15:05 2021 +0100

    Revert "plparser: Ignore case for UTF-8 encoding check in XML documents"
    
    Incorrect commit message.
    
    This reverts commit de23ed726be65424c05d18c2fba3054b68bb8666.

 plparse/totem-pl-parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]