X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdictionary%2Fsys-file-info.c;h=66ef00bb7063c988c6a4948c1049471399977da4;hb=0200682d517fd4b7cfc4e333378de03bcf74be43;hp=10ee6c8073d4b418fee2cf952c0e2047233020dd;hpb=6f73134da36459f90d7d1b95dd4007f97fc71575;p=pspp diff --git a/src/language/dictionary/sys-file-info.c b/src/language/dictionary/sys-file-info.c index 10ee6c8073..66ef00bb70 100644 --- a/src/language/dictionary/sys-file-info.c +++ b/src/language/dictionary/sys-file-info.c @@ -103,7 +103,7 @@ add_row (struct pivot_table *table, const char *attribute, /* SYSFILE INFO utility. */ int -cmd_sysfile_info (struct lexer *lexer, struct dataset *ds UNUSED) +cmd_sysfile_info (struct lexer *lexer, struct dataset *ds) { struct any_reader *any_reader; struct file_handle *h; @@ -706,7 +706,7 @@ display_attributes (const struct attrset *dict_attrset, var_get_attributes (vars[i]), flags); if (pivot_table_is_empty (table)) - pivot_table_destroy (table); + pivot_table_unref (table); else pivot_table_submit (table); } @@ -1002,7 +1002,7 @@ report_encodings (const struct file_handle *h, struct pool *pool, /* Table of valid encodings. */ struct pivot_table *table = pivot_table_create__ ( pivot_value_new_text_format (N_("Usable encodings for %s."), - fh_get_name (h))); + fh_get_name (h)), "Usable Encodings"); table->caption = pivot_value_new_text_format ( N_("Encodings that can successfully read %s (by specifying the encoding " "name on the GET command's ENCODING subcommand). Encodings that " @@ -1040,7 +1040,8 @@ report_encodings (const struct file_handle *h, struct pool *pool, /* Table of alternative interpretations. */ table = pivot_table_create__ ( pivot_value_new_text_format (N_("%s Encoded Text Strings"), - fh_get_name (h))); + fh_get_name (h)), + "Alternate Encoded Text Strings"); table->caption = pivot_value_new_text ( N_("Text strings in the file dictionary that the previously listed " "encodings interpret differently, along with the interpretations."));