[tracker] libtracker-data: Notify locales being used also for libunistring and glib collators
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Notify locales being used also for libunistring and glib collators
- Date: Fri, 15 Oct 2010 15:14:41 +0000 (UTC)
commit 2d2690fff4bae430b3ffdad16e32dd8a0842f965
Author: Aleksander Morgado <aleksander lanedo com>
Date: Fri Oct 15 17:09:13 2010 +0200
libtracker-data: Notify locales being used also for libunistring and glib collators
src/libtracker-data/tracker-collation.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-data/tracker-collation.c b/src/libtracker-data/tracker-collation.c
index 22d21ab..830aece 100644
--- a/src/libtracker-data/tracker-collation.c
+++ b/src/libtracker-data/tracker-collation.c
@@ -20,6 +20,7 @@
#include "config.h"
#include <glib.h>
#include <string.h>
+#include <locale.h>
#include "tracker-collation.h"
@@ -36,7 +37,6 @@
#define _UNUSED_PARAMETER_
#include <unistr.h>
#elif HAVE_LIBICU
-#include <locale.h>
#include <unicode/ucol.h>
#endif
@@ -48,7 +48,9 @@
gpointer
tracker_collation_init (void)
{
- g_debug ("[libunistring collation] Initializing collator");
+ const gchar *locale = setlocale (LC_COLLATE, NULL);
+
+ g_debug ("[libunistring collation] Initializing collator for locale '%s'", locale);
/* Nothing to do */
return NULL;
}
@@ -181,7 +183,9 @@ tracker_collation_utf8 (gpointer collator,
gpointer
tracker_collation_init (void)
{
- g_debug ("[GLib collation] Initializing collator");
+ const gchar *locale = setlocale (LC_COLLATE, NULL);
+
+ g_debug ("[GLib collation] Initializing collator for locale '%s'", locale);
/* Nothing to do */
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]