aboutsummaryrefslogtreecommitdiffstats
path: root/test/read_tags.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/read_tags.c')
-rw-r--r--test/read_tags.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/read_tags.c b/test/read_tags.c
index e7958abdb..cde90dad7 100644
--- a/test/read_tags.c
+++ b/test/read_tags.c
@@ -17,6 +17,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include "config.h"
#include "decoder_list.h"
#include "decoder_api.h"
#include "input_stream.h"
@@ -24,12 +25,25 @@
#include "pcm_volume.h"
#include "tag_ape.h"
#include "tag_id3.h"
+#include "idle.h"
#include <glib.h>
#include <assert.h>
#include <unistd.h>
+#ifdef HAVE_LOCALE_H
+#include <locale.h>
+#endif
+
+/**
+ * No-op dummy.
+ */
+void
+idle_add(G_GNUC_UNUSED unsigned flags)
+{
+}
+
/**
* No-op dummy.
*/
@@ -119,6 +133,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;