X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdictionary%2Fsys-file-info.c;h=c7f326f3be7f673fb7b5918785ca08093a24923f;hb=refs%2Fbuilds%2F20140212033042%2Fpspp;hp=60ce4d46868c46bc187070539a702d5c7b3dc172;hpb=cfc68512bf002c16d4a0f2c0acff764f96a2af3e;p=pspp diff --git a/src/language/dictionary/sys-file-info.c b/src/language/dictionary/sys-file-info.c index 60ce4d4686..c7f326f3be 100644 --- a/src/language/dictionary/sys-file-info.c +++ b/src/language/dictionary/sys-file-info.c @@ -89,7 +89,7 @@ cmd_sysfile_info (struct lexer *lexer, struct dataset *ds UNUSED) } casereader_destroy (reader); - t = tab_create (2, 11); + t = tab_create (2, 11 + (info.product_ext != NULL)); r = 0; tab_vline (t, TAL_GAP, 1, 0, 8); @@ -108,6 +108,12 @@ cmd_sysfile_info (struct lexer *lexer, struct dataset *ds UNUSED) tab_text_format (t, 1, r++, TAB_LEFT, "%s %s by %s", info.creation_date, info.creation_time, info.product); + if (info.product_ext) + { + tab_text (t, 0, r, TAB_LEFT, _("Product:")); + tab_text (t, 1, r++, TAB_LEFT, info.product_ext); + } + tab_text (t, 0, r, TAB_LEFT, _("Integer Format:")); tab_text (t, 1, r++, TAB_LEFT, info.integer_format == INTEGER_MSB_FIRST ? _("Big Endian") @@ -144,10 +150,11 @@ cmd_sysfile_info (struct lexer *lexer, struct dataset *ds UNUSED) ? var_get_name (weight_var) : _("Not weighted."))); } - tab_text (t, 0, r, TAB_LEFT, _("Mode:")); + tab_text (t, 0, r, TAB_LEFT, _("Compression:")); tab_text_format (t, 1, r++, TAB_LEFT, - _("Compression %s."), info.compressed ? _("on") : _("off")); - + info.compression == SFM_COMP_NONE ? _("None") + : info.compression == SFM_COMP_SIMPLE ? "SAV" + : "ZSAV"); tab_text (t, 0, r, TAB_LEFT, _("Charset:")); tab_text (t, 1, r++, TAB_LEFT, dict_get_encoding (d));