[totem-pl-parser/wip/hadess/more-encoding: 2/6] plparser: Print the origin encoding when converting to UTF-8
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser/wip/hadess/more-encoding: 2/6] plparser: Print the origin encoding when converting to UTF-8
- Date: Thu, 4 Mar 2021 14:55:04 +0000 (UTC)
commit 1ba7e65db1d0a195111eba048895f9cb7d38254d
Author: Bastien Nocera <hadess hadess net>
Date: Thu Mar 4 15:22:39 2021 +0100
plparser: Print the origin encoding when converting to UTF-8
plparse/totem-pl-parser.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index 9ad3c02..1918360 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -1881,7 +1881,8 @@ totem_pl_parser_parse_xml_relaxed (char *contents,
new_contents = g_convert (contents, size, "UTF-8", encoding, NULL, &new_size, &error);
if (new_contents == NULL) {
- g_warning ("Failed to convert XML data to UTF-8: %s", error->message);
+ g_warning ("Failed to convert XML data from '%s' to '%s': %s",
+ encoding, "UTF-8", error->message);
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]