aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index fe91ed3a2..4c7c6d97c 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -57,6 +57,7 @@
#include "util/Domain.hxx"
#include "thread/Id.hxx"
#include "thread/Slack.hxx"
+#include "lib/icu/Collate.hxx"
#include "config/ConfigGlobal.hxx"
#include "config/ConfigData.hxx"
#include "config/ConfigDefaults.hxx"
@@ -405,6 +406,11 @@ int mpd_main(int argc, char *argv[])
#endif
#endif
+ if (!IcuCollateInit(error)) {
+ LogError(error);
+ return EXIT_FAILURE;
+ }
+
winsock_init();
io_thread_init();
config_global_init();
@@ -651,6 +657,8 @@ int mpd_main(int argc, char *argv[])
WSACleanup();
#endif
+ IcuCollateFinish();
+
log_deinit();
return EXIT_SUCCESS;
}