X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Foutput%2Frender-test.c;h=b9ddd3e7f9491976a85c4dcfbeb9d1c821ed4a02;hb=952bce971f10482c5f2fdc64582f48aea1238f27;hp=90b5867f873f263df2938a1deff03b6ca9cc976b;hpb=eb142a3b4d4e2d4296fb3fcddb683c360748b6ca;p=pspp diff --git a/tests/output/render-test.c b/tests/output/render-test.c index 90b5867f87..b9ddd3e7f9 100644 --- a/tests/output/render-test.c +++ b/tests/output/render-test.c @@ -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'; @@ -475,7 +477,8 @@ read_table (FILE *stream) { char marker[2] = { 'a' + n_footnotes, '\0' }; struct footnote *f = table_create_footnote ( - tab, n_footnotes, content, marker, NULL); + tab, n_footnotes, content, marker, + area_style_clone (tab->container, &left_style)); table_add_footnote (tab, c, r, f); n_footnotes++; }