From c3e02bec3b69c386de72a2c66a63ecfaafa0db9e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 4 Aug 2009 00:41:06 +0200 Subject: test: initialize locale in read_tags.c --- test/read_tags.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') diff --git a/test/read_tags.c b/test/read_tags.c index e7958abd..db2221c1 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 #include #include +#ifdef HAVE_LOCALE_H +#include +#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; -- cgit v1.2.3