tracker r3001 - in trunk: . src/tracker-extract
- From: mottela svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r3001 - in trunk: . src/tracker-extract
- Date: Tue, 3 Mar 2009 02:09:51 +0000 (UTC)
Author: mottela
Date: Tue Mar 3 02:09:51 2009
New Revision: 3001
URL: http://svn.gnome.org/viewvc/tracker?rev=3001&view=rev
Log:
Strip whitespaces from extracted metadata
Modified:
trunk/ChangeLog
trunk/src/tracker-extract/tracker-escape.c
trunk/src/tracker-extract/tracker-escape.h
Modified: trunk/src/tracker-extract/tracker-escape.c
==============================================================================
--- trunk/src/tracker-extract/tracker-escape.c (original)
+++ trunk/src/tracker-extract/tracker-escape.c Tue Mar 3 02:09:51 2009
@@ -33,11 +33,13 @@
{
const gchar *end;
+ g_debug ("string:%s", str);
+
if (g_utf8_validate (str, -1, &end)) {
- return g_strdup (str);
+ return g_strstrip(g_strdup (str));
}
- return g_strndup (str, end - str);
+ return g_strstrip(g_strndup (str, end - str));
}
gchar *
Modified: trunk/src/tracker-extract/tracker-escape.h
==============================================================================
--- trunk/src/tracker-extract/tracker-escape.h (original)
+++ trunk/src/tracker-extract/tracker-escape.h Tue Mar 3 02:09:51 2009
@@ -23,7 +23,7 @@
#include <glib.h>
-#undef SHOULD_VALIDATE_UTF8
+#define SHOULD_VALIDATE_UTF8
G_BEGIN_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]