[tracker/collation: 9/10] collation: don't depend on an envvar now that COLLATION keyword works



commit 3e2c1a69e84174dfb7b8e5236bc8a110ea04cf74
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Tue Aug 17 13:53:38 2010 +0200

    collation: don't depend on an envvar now that COLLATION keyword works

 src/libtracker-data/tracker-db-interface-sqlite.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-interface-sqlite.c b/src/libtracker-data/tracker-db-interface-sqlite.c
index 24cacc1..ed5bb8b 100644
--- a/src/libtracker-data/tracker-db-interface-sqlite.c
+++ b/src/libtracker-data/tracker-db-interface-sqlite.c
@@ -38,9 +38,6 @@
 
 #include "tracker-db-interface-sqlite.h"
 
-/* Envvar to enable collation in sqlite */
-#define TRACKER_COLLATION_ENABLED "TRACKER_COLLATION_ENABLED"
-
 struct TrackerDBInterface {
 	GObject parent_instance;
 
@@ -506,9 +503,8 @@ open_database (TrackerDBInterface *db_interface)
 		g_message ("Opened sqlite3 database:'%s'", db_interface->filename);
 	}
 
-	/* Set collation function if envvar set */
-	if (g_getenv (TRACKER_COLLATION_ENABLED) &&
-	    !db_interface->collator) {
+	/* Set unicode collation function */
+	if (!db_interface->collator) {
 		db_interface->collator = tracker_collation_init ();
 		tracker_db_interface_sqlite_set_collation_function (db_interface,
 		                                                    "TRACKER",



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