aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/Directory.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-23 19:27:08 +0100
committerMax Kellermann <max@duempel.org>2014-02-24 20:39:37 +0100
commit33fc3af775ca35ae343a4e50de36e8853cabb86d (patch)
treebfa5312e28ae2e62ecb167436ccb62a70250bd0a /src/db/Directory.cxx
parent6d9739165eaf3d81e00f60124cfc48aba509a9a6 (diff)
downloadmpd-33fc3af775ca35ae343a4e50de36e8853cabb86d.tar.gz
mpd-33fc3af775ca35ae343a4e50de36e8853cabb86d.tar.xz
mpd-33fc3af775ca35ae343a4e50de36e8853cabb86d.zip
SongSort, ...: use libicu instead of GLib's g_utf8_*()
Diffstat (limited to '')
-rw-r--r--src/db/Directory.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db/Directory.cxx b/src/db/Directory.cxx
index 01e147eff..1da19be98 100644
--- a/src/db/Directory.cxx
+++ b/src/db/Directory.cxx
@@ -27,6 +27,7 @@
#include "SongSort.hxx"
#include "Song.hxx"
#include "LightSong.hxx"
+#include "lib/icu/Collate.hxx"
#include "fs/Traits.hxx"
#include "util/Alloc.hxx"
#include "util/Error.hxx"
@@ -35,8 +36,6 @@ extern "C" {
#include "util/list_sort.h"
}
-#include <glib.h>
-
#include <assert.h>
#include <string.h>
#include <stdlib.h>
@@ -229,7 +228,8 @@ directory_cmp(gcc_unused void *priv,
{
const Directory *a = (const Directory *)_a;
const Directory *b = (const Directory *)_b;
- return g_utf8_collate(a->path.c_str(), b->path.c_str());
+
+ return IcuCollate(a->path.c_str(), b->path.c_str());
}
void