[totem-pl-parser] plparser: Print guessed encoding of xml document



commit e85f88f82cbec9c6e503ebdcc6cb8549883a3cf9
Author: crvi <crvisqr gmail com>
Date:   Thu Mar 18 18:50:02 2021 +0530

    plparser: Print guessed encoding of xml document

 plparse/totem-pl-parser.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index 0f2c6d2..534d268 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -1914,6 +1914,8 @@ totem_pl_parser_parse_xml_relaxed (char *contents,
                encoding = guess_text_encoding (contents, size);
                if (!encoding)
                        return NULL;
+
+               g_debug ("Guessed text encoding of XML data as '%s'", encoding);
                /* fall-through with the detected encoding */
        }
 


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