Replace '(GObjectClass*) class' with 'G_OBJECT_CLASS(class)'
[pspp] / tests / output / render-test.c
index 49a76a66adaec574572f632ca76a64e5e68dfc06..b9ddd3e7f9491976a85c4dcfbeb9d1c821ed4a02 100644 (file)
@@ -25,6 +25,7 @@
 #include "data/file-handle-def.h"
 #include "libpspp/assertion.h"
 #include "libpspp/compiler.h"
+#include "libpspp/i18n.h"
 #include "libpspp/string-map.h"
 #include "output/ascii.h"
 #include "output/driver.h"
@@ -76,6 +77,7 @@ main (int argc, char **argv)
   FILE *input;
 
   set_program_name (argv[0]);
+  i18n_init ();
   output_engine_push ();
   input_file_name = parse_options (argc, argv);
 
@@ -346,7 +348,7 @@ replace_newlines (char *p)
 {
   char *q;
 
-  for (q = p; *p != '\0'; )
+  for (q = p; *p != '\0';)
     if (*p == '\\' && p[1] == 'n')
       {
         *q++ = '\n';