From 57166a5a5c4016b83b9a35ac32c219ff853dc9ce Mon Sep 17 00:00:00 2001 From: John Darrington Date: Fri, 6 Feb 2009 08:01:22 +0900 Subject: [PATCH] Silently ignore some inrecognised subtypes. When reading system files, record subtypes of which the developers are aware but which pspp doesn't yet support are silently ignored. Subtypes which the developers are unaware provoke a message requesting the user to send us a sample. --- src/data/sys-file-reader.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/data/sys-file-reader.c b/src/data/sys-file-reader.c index d5b5b15f..e8349abf 100644 --- a/src/data/sys-file-reader.c +++ b/src/data/sys-file-reader.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2007, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -728,7 +728,11 @@ read_extension_record (struct sfm_reader *r, struct dictionary *dict, break; case 7: - /* Unknown purpose. */ + /* Used by the MRSETS command. */ + break; + + case 8: + /* Used by the SPSS Data Entry software. */ break; case 11: @@ -765,7 +769,8 @@ read_extension_record (struct sfm_reader *r, struct dictionary *dict, break; default: - sys_warn (r, _("Unrecognized record type 7, subtype %d."), subtype); + sys_warn (r, _("Unrecognized record type 7, subtype %d. Please send a copy of this file, and the syntax which created it to %s"), + subtype, PACKAGE_BUGREPORT); break; } -- 2.30.2