aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-08-04 00:41:06 +0200
committerMax Kellermann <max@duempel.org>2009-08-04 00:41:06 +0200
commitc3e02bec3b69c386de72a2c66a63ecfaafa0db9e (patch)
tree032a5a54140af0707dc791db3fe42f2b9b7e367b /test
parent4363c49443f8371a4e9a28fff552355df6aa0f55 (diff)
downloadmpd-c3e02bec3b69c386de72a2c66a63ecfaafa0db9e.tar.gz
mpd-c3e02bec3b69c386de72a2c66a63ecfaafa0db9e.tar.xz
mpd-c3e02bec3b69c386de72a2c66a63ecfaafa0db9e.zip
test: initialize locale in read_tags.c
Diffstat (limited to 'test')
-rw-r--r--test/read_tags.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/read_tags.c b/test/read_tags.c
index e7958abdb..db2221c13 100644
--- a/test/read_tags.c
+++ b/test/read_tags.c
@@ -24,12 +24,17 @@
#include "pcm_volume.h"
#include "tag_ape.h"
#include "tag_id3.h"
+#include "config.h"
#include <glib.h>
#include <assert.h>
#include <unistd.h>
+#ifdef HAVE_LOCALE_H
+#include <locale.h>
+#endif
+
/**
* No-op dummy.
*/
@@ -119,6 +124,11 @@ int main(int argc, char **argv)
struct tag *tag;
bool empty;
+#ifdef HAVE_LOCALE_H
+ /* initialize locale */
+ setlocale(LC_CTYPE,"");
+#endif
+
if (argc != 3) {
g_printerr("Usage: read_tags DECODER FILE\n");
return 1;