[tracker] Don't print invalid UTF-8 warnings in tracker-statement-list
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker] Don't print invalid UTF-8 warnings in tracker-statement-list
- Date: Tue, 28 Jul 2009 11:17:18 +0000 (UTC)
commit 9ad130c5b270f5b3faec6b007c6cbc9a5d3cd3fb
Author: Martyn Russell <martyn imendio com>
Date: Tue Jul 28 12:04:06 2009 +0100
Don't print invalid UTF-8 warnings in tracker-statement-list
This is of no use. Some things WILL be invalid anyway and printing
them doesn't help, all it does is raise concerns.
src/libtracker-common/tracker-statement-list.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-common/tracker-statement-list.c b/src/libtracker-common/tracker-statement-list.c
index 723bfe7..743fbd3 100644
--- a/src/libtracker-common/tracker-statement-list.c
+++ b/src/libtracker-common/tracker-statement-list.c
@@ -49,7 +49,9 @@ tracker_statement_list_insert (TrackerSparqlBuilder *statements,
if (!g_utf8_validate (value, -1, &end)) {
gchar *valid;
- g_warning ("Invalid UTF-8 in statement list insert for value");
+ /* g_message ("Only inserting %ld/%ld (valid UTF8) bytes for statement list", */
+ /* end - value, */
+ /* strlen (value)); */
if (value != end) {
valid = g_strndup (value, end - value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]