aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/SongSort.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/SongSort.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/SongSort.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/db/SongSort.cxx b/src/db/SongSort.cxx
index dcea033b6..c5752f568 100644
--- a/src/db/SongSort.cxx
+++ b/src/db/SongSort.cxx
@@ -21,13 +21,12 @@
#include "SongSort.hxx"
#include "Song.hxx"
#include "tag/Tag.hxx"
+#include "lib/icu/Collate.hxx"
extern "C" {
#include "util/list_sort.h"
}
-#include <glib.h>
-
#include <stdlib.h>
static int
@@ -39,7 +38,7 @@ compare_utf8_string(const char *a, const char *b)
if (b == nullptr)
return 1;
- return g_utf8_collate(a, b);
+ return IcuCollate(a, b);
}
/**
@@ -104,7 +103,7 @@ song_cmp(gcc_unused void *priv, struct list_head *_a, struct list_head *_b)
return ret;
/* still no difference? compare file name */
- return g_utf8_collate(a->uri, b->uri);
+ return IcuCollate(a->uri, b->uri);
}
void