pspp
9 years agou8-istream: Fix handling of partial reads.
Ben Pfaff [Tue, 9 Sep 2014 15:51:44 +0000 (08:51 -0700)]
u8-istream: Fix handling of partial reads.

The u8-istream code did not retry upon a partial read, assuming that that
was the end of the file.  When the partial read was shorter than
ENCODING_GUESS_MIN, this could cause the encoding guesser, in turn, to
guess the wrong encoding (especially if the encoding was really UTF-16 and
the partial read was an odd number of bytes).

Reported at https://bugs.debian.org/760841.
Reported by Friedrich Beckmann and Steven Chamberlain.

9 years agoUpdated translations from translationproject.org
Ben Pfaff [Thu, 4 Sep 2014 15:24:42 +0000 (08:24 -0700)]
Updated translations from translationproject.org

9 years agohtml: Format new-lines as line breaks.
Ben Pfaff [Wed, 3 Sep 2014 04:10:35 +0000 (21:10 -0700)]
html: Format new-lines as line breaks.

Otherwise all the lines run together in SYSFILE INFO output in particular.

9 years agohtml: Align table cells vertically at the top.
Ben Pfaff [Wed, 3 Sep 2014 04:09:32 +0000 (21:09 -0700)]
html: Align table cells vertically at the top.

This is what the ascii and cairo drivers do, and it looks best.

9 years agozip-writer: Write size and CRC in local directory when possible.
Ben Pfaff [Thu, 4 Sep 2014 04:03:06 +0000 (21:03 -0700)]
zip-writer: Write size and CRC in local directory when possible.

Google Drive rejects ODT files as corrupted unless their size and CRC are
in local file headers, even though the zip file specification says that it
is OK for them to follow the file data.  Thus, this commit changes the
zip writer to satisfy Google unless the output file is not seekable.

9 years agoodt: Use text:outline-level instead of text:level inside text:h.
Ben Pfaff [Wed, 3 Sep 2014 05:34:59 +0000 (22:34 -0700)]
odt: Use text:outline-level instead of text:level inside text:h.

text:level is for numbered lists, text:outline-level is for headings.

Found by validating sample output against ODT Relax-NG schema with "jing".

9 years agopsppire-dialog-action-var-info: Only allow "Jump To" with one variable.
Ben Pfaff [Mon, 1 Sep 2014 00:57:29 +0000 (17:57 -0700)]
psppire-dialog-action-var-info: Only allow "Jump To" with one variable.

Until now, when at least one variable was selected, the user could click
on "Jump To", which would jump to the first selected variable.  This commit
changes behavior so that "Jump To" is only enabled when exactly one
variable is selected, which makes it a lot less confusing about which
variable will be jumped to.

Suggested by Bastián Díaz <diaz.bastian@ymail.com> .

9 years agopsppire-dialog-action-varinfo: Make dialog use output engine.
Ben Pfaff [Sat, 30 Aug 2014 18:53:15 +0000 (11:53 -0700)]
psppire-dialog-action-varinfo: Make dialog use output engine.

9 years agopsppire-output-view: New features for use separate from output window.
Ben Pfaff [Sat, 30 Aug 2014 19:01:34 +0000 (12:01 -0700)]
psppire-output-view: New features for use separate from output window.

9 years agopsppire-output-view: Adjust output formatting as widget is resized.
Ben Pfaff [Sat, 30 Aug 2014 18:31:50 +0000 (11:31 -0700)]
psppire-output-view: Adjust output formatting as widget is resized.

9 years agopsppire-output-view: Fix memory leaks.
Ben Pfaff [Sat, 30 Aug 2014 18:39:25 +0000 (11:39 -0700)]
psppire-output-view: Fix memory leaks.

These memory leaks have been present for a long time, probably since
Cairo-based GUI output was introduced.

9 years agopsppire-output-window: Factor out output view as psppire-output-view.
Ben Pfaff [Sat, 30 Aug 2014 18:55:08 +0000 (11:55 -0700)]
psppire-output-window: Factor out output view as psppire-output-view.

This will allow it to be used in other places.

9 years agogui: Consistently call PsppireOutputWindow a "window", not a "viewer".
Ben Pfaff [Sun, 24 Aug 2014 22:03:26 +0000 (15:03 -0700)]
gui: Consistently call PsppireOutputWindow a "window", not a "viewer".

I intend to separate the windw from the view, which makes the existing
terminology confusing.

9 years agooutput: Make it possible to push and pop output engines.
Ben Pfaff [Tue, 26 Aug 2014 01:08:06 +0000 (18:08 -0700)]
output: Make it possible to push and pop output engines.

This makes it possible to temporarily push a different set of output
drivers, which in turn makes it possible to do output as a pane within a
dialog or other window.

9 years agodoc: Fix PDF manual build with updated texinfo.tex.
Friedrich Beckmann [Sun, 24 Aug 2014 05:41:58 +0000 (22:41 -0700)]
doc: Fix PDF manual build with updated texinfo.tex.

Patch posted at https://savannah.gnu.org/patch/?8518.

9 years agoSYSFILE INFO: Improve output formatting by using nested tables.
Ben Pfaff [Sun, 24 Aug 2014 00:19:38 +0000 (17:19 -0700)]
SYSFILE INFO: Improve output formatting by using nested tables.

9 years agooutput: Implement nested tables.
Ben Pfaff [Sun, 24 Aug 2014 00:12:33 +0000 (17:12 -0700)]
output: Implement nested tables.

This generalizes the output engine to handle cells with fairly flexible
content, instead of just paragraphs of text.

9 years agotests: Refactor rendering tests.
Ben Pfaff [Sun, 17 Aug 2014 17:40:56 +0000 (10:40 -0700)]
tests: Refactor rendering tests.

This will make it easier to test nested tables when support for them is
added in an upcoming commit, because it becomes possible to include
multiple of the complicated test tables in one file easily.

9 years agorender-test: Add --no-txt and --no-stdout options.
Ben Pfaff [Sat, 23 Aug 2014 21:24:27 +0000 (14:24 -0700)]
render-test: Add --no-txt and --no-stdout options.

I have found these sometimes useful during debugging.

9 years agopo: Update translations from translationproject.org.
Ben Pfaff [Sat, 9 Aug 2014 15:10:36 +0000 (08:10 -0700)]
po: Update translations from translationproject.org.

9 years agoPspp.t: Sort value labels before comparing them.
John Darrington [Sat, 9 Aug 2014 11:11:07 +0000 (13:11 +0200)]
Pspp.t: Sort value labels before comparing them.

This test failed on some platforms because it was iterating a hash.  The
order of an iterated hash is undefined.  This change sorts before comparing
thus avoiding the problem.

Thanks to Friedrich Beckmann for this patch.

9 years agorender: Rename 'cell' variables used for breaking to 'z'.
Ben Pfaff [Tue, 22 Jul 2014 04:56:39 +0000 (21:56 -0700)]
render: Rename 'cell' variables used for breaking to 'z'.

Upcoming changes will add an instance of a struct table_cell in
render_break_next(), whose name is naturally 'cell', so 'z' is a better
name for a cell index along the current axis.

9 years agotable-paste: Add error-checking assertion to table_paste().
Ben Pfaff [Tue, 22 Jul 2014 04:42:08 +0000 (21:42 -0700)]
table-paste: Add error-checking assertion to table_paste().

9 years agotable-paste: Fix comments and variable naming.
Ben Pfaff [Tue, 22 Jul 2014 04:35:07 +0000 (21:35 -0700)]
table-paste: Fix comments and variable naming.

9 years agorender: Fix typo in comment.
Ben Pfaff [Tue, 22 Jul 2014 04:01:53 +0000 (21:01 -0700)]
render: Fix typo in comment.

9 years agorender: Fix rendering corner cases when a cell is broken across pages.
Ben Pfaff [Sun, 20 Jul 2014 00:44:30 +0000 (17:44 -0700)]
render: Fix rendering corner cases when a cell is broken across pages.

The rendering code ability to break individual cells across multiple pages
has never received good test coverage because the criteria for doing that
are strict enough that the testsuite hardly ever does it.  This commit adds
a "--min-break=0" version to each test in the testsuite, which uncovers a
number of bugs in the cell breaking code.  It also fixes those bugs.

9 years agorender-test: Add output file option.
Ben Pfaff [Tue, 15 Jul 2014 07:05:07 +0000 (00:05 -0700)]
render-test: Add output file option.

9 years agoMake minimum breaks configurable.
Ben Pfaff [Sun, 29 Jun 2014 22:22:37 +0000 (15:22 -0700)]
Make minimum breaks configurable.

9 years agorender: Don't add overflows when header is contiguous with body.
Ben Pfaff [Sun, 13 Jul 2014 17:47:43 +0000 (10:47 -0700)]
render: Don't add overflows when header is contiguous with body.

render_page_select() needs to calculate overflows when it cuts a header off
from the body of a table.  Until now, it has considered headers and body to
always be cut off from each other, but this isn't true when the selected
body region is adjacent to one of the headers.  This commit takes that into
consideration, producing better results in one of the tests in the
testsuite.

This commit is much smaller when viewed with whitespace changes ignored.

9 years agotable-select: Only cut headers into two if needed in table_select_slice().
Ben Pfaff [Sun, 13 Jul 2014 17:41:13 +0000 (10:41 -0700)]
table-select: Only cut headers into two if needed in table_select_slice().

Until now, when including headers in the table it returns,
table_select_slice() has always either returned the entire original table
or a set of chunks: left header, selected body, right header.  However, it
is possible to do better when the selected body includes all the cells
up to, say, the right header: then you only need a single chunk to include
the body and the right header.  Besides saving memory, this also has the
advantage that, if a joined cell crosses between the body and the header,
it is not cut into two pieces by chunking.  It doesn't make too much sense
to join a cell across body and header, but this still makes it easier to
render better if someone does that.

The testsuite includes a few tables that do join a cell across body and
header.  This commit improves the output for one and changes some ugly
output to different ugly output for another.  Additional changes in an
upcoming commit fix the latter and some other tables too.

9 years agorender: Add comments to tests.
Ben Pfaff [Thu, 10 Jul 2014 07:07:04 +0000 (00:07 -0700)]
render: Add comments to tests.

9 years agorender: Fix typo in comment.
Ben Pfaff [Thu, 10 Jul 2014 04:24:04 +0000 (21:24 -0700)]
render: Fix typo in comment.

9 years agoAdd OUTPUT MODIFY command
John Darrington [Wed, 9 Jul 2014 12:23:37 +0000 (14:23 +0200)]
Add OUTPUT MODIFY command

9 years agoFix typo in printed string
John Darrington [Wed, 9 Jul 2014 13:51:28 +0000 (15:51 +0200)]
Fix typo in printed string

9 years agopo: Update translations from translationproject.org.
Ben Pfaff [Tue, 8 Jul 2014 17:36:08 +0000 (10:36 -0700)]
po: Update translations from translationproject.org.

9 years agoRemove file po/de.po,aux
John Darrington [Wed, 2 Jul 2014 05:50:03 +0000 (07:50 +0200)]
Remove file po/de.po,aux

This is no longer needed, since the strings are now translated in the
main po/de.po file

9 years agoAdd psppire-window-base.c to list of glade auxilliary files
John Darrington [Fri, 27 Jun 2014 16:36:52 +0000 (18:36 +0200)]
Add psppire-window-base.c to list of glade auxilliary files

9 years agopo: Update translations from translationproject.org.
Ben Pfaff [Sun, 29 Jun 2014 22:23:37 +0000 (15:23 -0700)]
po: Update translations from translationproject.org.

9 years agocairo: Use same scale factor as Pango, for precision and speed.
Ben Pfaff [Tue, 24 Jun 2014 05:22:25 +0000 (22:22 -0700)]
cairo: Use same scale factor as Pango, for precision and speed.

By setting XR_POINT to PANGO_SCALE (1024), we can avoid the need for
expensive conversions that lose accuracy.

9 years agocairo: Fix failures to scale between cairo and pango units.
Ben Pfaff [Tue, 24 Jun 2014 05:20:31 +0000 (22:20 -0700)]
cairo: Fix failures to scale between cairo and pango units.

The difference between Cairo and Pango units, as currently defined by
XR_POINT and PANGO_SCALE, is only 2.4% (1000 versus 1024).  This makes the
difference rarely noticeable, and easy to miss when casually looking at
output.  However, while continuing to develop the PSPP output drivers, I
did notice.

To make the difference obvious, I temporarily changed XR_POINT from 1000
to 500.  This commit fixes the problems that this revealed.

9 years agocairo: Remove PangoWrapMode parameter that was always PANGO_WRAP_WORD.
Ben Pfaff [Sun, 15 Jun 2014 17:00:27 +0000 (10:00 -0700)]
cairo: Remove PangoWrapMode parameter that was always PANGO_WRAP_WORD.

9 years agoFixed crash in REGRESSION when only one SAVE parameter present.
John Darrington [Mon, 23 Jun 2014 19:01:22 +0000 (21:01 +0200)]
Fixed crash in REGRESSION when only one SAVE parameter present.

The REGRESSION command crashed when /SAVE=resid or /SAVE=pred
(but not both) was given.  This change fixes this.

Reported by: Bob Earl <Bob.Earl@gmx.net>

9 years agopo: Update translations from translationproject.org.
Ben Pfaff [Mon, 9 Jun 2014 15:39:16 +0000 (08:39 -0700)]
po: Update translations from translationproject.org.

9 years agohtml: Fix right border of cells that span columns at right edge of a table.
Ben Pfaff [Sun, 1 Jun 2014 04:45:47 +0000 (21:45 -0700)]
html: Fix right border of cells that span columns at right edge of a table.

Similarly for bottom border of cells that span rows at bottom of a table.

Reported by John Darrington.
Bug #42321.

9 years agovariable: Report only changes in width that actually change it.
Ben Pfaff [Sun, 25 May 2014 22:37:15 +0000 (15:37 -0700)]
variable: Report only changes in width that actually change it.

For me, this fixes the problem reported by Fran A. <pacodea2001@yahoo.es>
when I resize the width of the second variable in a data file provided
by John Darrington.

9 years agodoc: Correct name of binomial dsitribution functions.
Ben Pfaff [Mon, 12 May 2014 15:06:17 +0000 (08:06 -0700)]
doc: Correct name of binomial dsitribution functions.

Reported by Bob Earl <Bob.Earl@gmx.net>.

9 years agoCROSSTABS: Add test to verify treatment of ties.
Ben Pfaff [Sun, 11 May 2014 04:01:35 +0000 (21:01 -0700)]
CROSSTABS: Add test to verify treatment of ties.

From an example provided privately by Douglas Bonett.

9 years agoCROSSTABS: Calculate significance for lambda and Somers' d.
Ben Pfaff [Sun, 11 May 2014 03:45:43 +0000 (20:45 -0700)]
CROSSTABS: Calculate significance for lambda and Somers' d.

John Darrington pointed out that lambda just uses normal significance.
Somers' d appears to do so also (based on only a few examples though).

10 years agoNEWS: correct typo
John Darrington [Sat, 3 May 2014 07:11:15 +0000 (09:11 +0200)]
NEWS: correct typo

10 years agoCROSSTABS: Calculate ASE for asymmetric lambda (correctly).
Ben Pfaff [Tue, 6 May 2014 15:46:15 +0000 (08:46 -0700)]
CROSSTABS: Calculate ASE for asymmetric lambda (correctly).

Calculation supplied by Douglas Bonett <dgbonett@ucsc.edu>:
http://lists.gnu.org/archive/html/pspp-dev/2014-05/msg00007.html

10 years agoCROSSTABS: Don't calculate symmetric uncertainty coefficient approx T.
Ben Pfaff [Tue, 6 May 2014 07:13:42 +0000 (00:13 -0700)]
CROSSTABS: Don't calculate symmetric uncertainty coefficient approx T.

It was calculated wrong.

10 years agoCROSSTABS: Add additional test case.
Ben Pfaff [Tue, 6 May 2014 06:54:52 +0000 (23:54 -0700)]
CROSSTABS: Add additional test case.

10 years agoCROSSTABS: Don't calculate ASE for symmetric Somers' d.
Ben Pfaff [Tue, 6 May 2014 06:35:44 +0000 (23:35 -0700)]
CROSSTABS: Don't calculate ASE for symmetric Somers' d.

I couldn't figure out how to get the formula to match the SPSS results.

Also, add several tests for Somers' D and other ordinal tests.

10 years agoCROSSTABS: Drop buggy ASE for asymmetric lambda; fix T for symmetric lambda.
Ben Pfaff [Tue, 6 May 2014 04:48:13 +0000 (21:48 -0700)]
CROSSTABS: Drop buggy ASE for asymmetric lambda; fix T for symmetric lambda.

I really can't figure out how SPSS calculates the ASE for asymmetric
lambda, despite hours of effort.

10 years agoCROSSTABS: Fix T values for Spearman's R and Pearson's R.
Ben Pfaff [Sun, 4 May 2014 20:03:38 +0000 (13:03 -0700)]
CROSSTABS: Fix T values for Spearman's R and Pearson's R.

I verified that the values are correct using this online calculator:
http://www.danielsoper.com/statcalc3/calc.aspx?id=61

10 years agoCROSSTABS: Add tests for Pearson's R, and update documentation.
Ben Pfaff [Sun, 4 May 2014 18:45:22 +0000 (11:45 -0700)]
CROSSTABS: Add tests for Pearson's R, and update documentation.

PSPP seems to calculate Pearson's R values correctly, despite the
documentation that said otherwise.  I don't have any remaining notes for
why the documentation said this, so I'm removing the claim that PSPP does
not calculate Pearson's R correctly.

10 years agoexpressions: Reword error message upon use of unimplemented function.
Ben Pfaff [Sun, 4 May 2014 17:35:04 +0000 (10:35 -0700)]
expressions: Reword error message upon use of unimplemented function.

Some users found the previous wording confusing.  This wording suggested
by John Darrington <john@darrington.wattle.id.au>.

See discussion at:
http://lists.gnu.org/archive/html/pspp-users/2014-05/msg00004.html

10 years agosyntax-gen: Include missing header file.
Ben Pfaff [Sun, 4 May 2014 17:31:37 +0000 (10:31 -0700)]
syntax-gen: Include missing header file.

10 years agodoc: Comment out documentation for functions that are not implemented.
Ben Pfaff [Sun, 4 May 2014 17:30:05 +0000 (10:30 -0700)]
doc: Comment out documentation for functions that are not implemented.

Reported by John Darrington <john@darrington.wattle.id.au>.

10 years agoAnnotate some more results as p-values and update the tests accordingly
John Darrington [Thu, 1 May 2014 09:08:56 +0000 (11:08 +0200)]
Annotate some more results as p-values and update the tests accordingly

10 years agoAdded result_class parameter to tab_double and updated all callers. Removed tab_fixed
John Darrington [Tue, 29 Apr 2014 13:32:35 +0000 (15:32 +0200)]
Added result_class parameter to tab_double and updated all callers. Removed tab_fixed

10 years agosyntax-gen.c : Allow conversion specifiers of the form %.20f
John Darrington [Thu, 24 Apr 2014 12:56:09 +0000 (14:56 +0200)]
syntax-gen.c : Allow conversion specifiers of the form %.20f

10 years agoFixed a bug where contrasts with negative T where incorrectly processed.
John Darrington [Sun, 27 Apr 2014 14:21:43 +0000 (16:21 +0200)]
Fixed a bug where contrasts with negative T where incorrectly processed.

Planned contrasts in the ONEWAY procedure reported p-values > 1 when
T was negative.  This change fixes this problem.

Thanks to Douglas Bonett <dgbonett@ucsc.edu> for reporting this.

10 years agosys-file-info: Add IBM850 and DIN_66003 encodings.
Ben Pfaff [Sat, 26 Apr 2014 20:54:20 +0000 (13:54 -0700)]
sys-file-info: Add IBM850 and DIN_66003 encodings.

Requested by Andre Müller:
https://lists.gnu.org/archive/html/bug-gnu-pspp/2014-02/msg00036.html

10 years agoFREQUENCIES: Fixed crash showing histograms of limited range.
John Darrington [Sat, 26 Apr 2014 05:33:08 +0000 (07:33 +0200)]
FREQUENCIES: Fixed crash showing histograms of limited range.

We had been using Freedman-Diaconis rule to select the bin width.
According to the literature this is better than Sturges rule.
However it cannot work when the interquartile range is zero, which
will happen for datasets with small range.

This change uses the Freedman-Diaconis rule and falls back to
Sturges when the IQR is zero.

10 years agoFREQUENCIES: Replaced frequencies.q with frequencies.c
John Darrington [Mon, 21 Apr 2014 15:03:44 +0000 (17:03 +0200)]
FREQUENCIES: Replaced frequencies.q with frequencies.c

10 years agoFREQUENCIES: Added new test for bug which causes a crash
John Darrington [Mon, 21 Apr 2014 14:55:33 +0000 (16:55 +0200)]
FREQUENCIES: Added new test for bug which causes a crash

10 years agoNew test: test/ui/syntax-gen-test.c
John Darrington [Fri, 25 Apr 2014 04:20:27 +0000 (06:20 +0200)]
New test: test/ui/syntax-gen-test.c

Added a test to provide some confidence that the syntax generation
functions work.

10 years agosrc/ui/syntax-gen.c: Correct misleading comment
John Darrington [Fri, 25 Apr 2014 04:18:58 +0000 (06:18 +0200)]
src/ui/syntax-gen.c: Correct misleading comment

10 years agoUpdate version number to 0.8.3.
Ben Pfaff [Fri, 25 Apr 2014 04:49:22 +0000 (21:49 -0700)]
Update version number to 0.8.3.

10 years agopo: Update translations from translationproject.org.
Ben Pfaff [Fri, 25 Apr 2014 03:56:50 +0000 (20:56 -0700)]
po: Update translations from translationproject.org.

10 years agoAvoid crash in psppire-dialog-action-logistic.c
John Darrington [Thu, 24 Apr 2014 04:53:27 +0000 (06:53 +0200)]
Avoid crash in psppire-dialog-action-logistic.c

Commit 14f4522a17db23e67a6fa17876633cc6260cb42b introduced some
printf directives which syntax_gen_pspp did not support.  This
resulted in an assertion failure.

This change reverts the changes which caused the problem.

10 years agopo: Update translations from translationproject.org.
Ben Pfaff [Sat, 5 Apr 2014 19:59:18 +0000 (12:59 -0700)]
po: Update translations from translationproject.org.

10 years agopage-first-line: Make the Text column expand as the window is resized.
Ben Pfaff [Sat, 5 Apr 2014 16:43:41 +0000 (09:43 -0700)]
page-first-line: Make the Text column expand as the window is resized.

Bug #41974.
Reported by Mindaugus.

10 years agoUpdated translations from translationproject.org
Ben Pfaff [Sat, 5 Apr 2014 16:11:30 +0000 (09:11 -0700)]
Updated translations from translationproject.org

10 years agoconfigure: Increase version to 0.8.2.1 to enable translations.
Ben Pfaff [Sat, 5 Apr 2014 16:02:41 +0000 (09:02 -0700)]
configure: Increase version to 0.8.2.1 to enable translations.

Requested by Harry Thijssen.

10 years agoDESCRIPTIVES: Fix treatment of FILTER in presence of Z scores.
Ben Pfaff [Fri, 4 Apr 2014 22:32:32 +0000 (15:32 -0700)]
DESCRIPTIVES: Fix treatment of FILTER in presence of Z scores.

Bug #42012.
Reported by Mindaugus.

10 years agoline-reader: Fix null derefe in line_reader_for_fd() with null encoding.
Ben Pfaff [Fri, 4 Apr 2014 05:12:49 +0000 (22:12 -0700)]
line-reader: Fix null derefe in line_reader_for_fd() with null encoding.

This function is supposed to treat NULL and "Auto" the same way, but it
tried to xstrdup NULL, which doesn't work.

This is easy to reproduce by attempting to use File|Import Data to read
a short file whose contents are all ASCII.

Bug #41971.
Reported by Mindaugus.

10 years agopsppire-syntax-window: Recode file from final encoding, not original one.
Ben Pfaff [Fri, 4 Apr 2014 04:59:47 +0000 (21:59 -0700)]
psppire-syntax-window: Recode file from final encoding, not original one.

When syntax_load() reads a syntax file, it can guess the correct encoding
using encoding_guess_whole_file().  When it does that, it's supposed to
use the guessed encoding to recode the file data into UTF-8.  In fact, it
was using the original (NULL or "") encoding, which didn't work out well.
This commit makes it use the guessed encoding.

Bug #41975.
Reported by Mindaugas.

10 years agoUpdated translations from translationproject.org
John Darrington [Sat, 29 Mar 2014 09:33:35 +0000 (10:33 +0100)]
Updated translations from translationproject.org

10 years agoT-TEST: Fixed a bug in reporting the independent samples std err of the difference
John Darrington [Sat, 29 Mar 2014 07:12:43 +0000 (08:12 +0100)]
T-TEST: Fixed a bug in reporting the independent samples std err of the difference

The standard error of the difference and the confidence interval
for the unequal variances case was reported where the equal variances
case should have been.  This change fixes that.

Reported by: Michael Schneider <m-schneider.klh@uni-wuerzburg.de>

10 years agoGET DATA - corrected documentation
John Darrington [Mon, 24 Mar 2014 19:42:40 +0000 (20:42 +0100)]
GET DATA - corrected documentation

The manual incorrectly documented the /ASSUMEDSTRWIDTH subcommand as
/ASSUMEDVARWIDTH  This change fixes it.

Thanks to Ward Rommel for reporting this.

10 years agoCartesian Graphs: use circular marker instead of square one.
John Darrington [Sun, 23 Mar 2014 10:34:07 +0000 (11:34 +0100)]
Cartesian Graphs: use circular marker instead of square one.

Also slightly smaller.  This I think is a bit more aesthetically
pleasing.

10 years agopspp-dump-sav: Dump labels longer than 255 bytes.
Ben Pfaff [Wed, 19 Mar 2014 03:49:35 +0000 (20:49 -0700)]
pspp-dump-sav: Dump labels longer than 255 bytes.

10 years agosys-file-reader: Raise maximum number of bytes in variable label to 65536.
Ben Pfaff [Wed, 19 Mar 2014 03:49:17 +0000 (20:49 -0700)]
sys-file-reader: Raise maximum number of bytes in variable label to 65536.

Reported by Andre Müller.
Bug #41863.

10 years agoAdded display sort feature to PsppireDictView
John Darrington [Mon, 17 Mar 2014 20:03:27 +0000 (21:03 +0100)]
Added display sort feature to PsppireDictView

Added a feature to the dialog boxes where the user can choose
the sort order in which to display the variables.

10 years agoodt: Format newlines in table cells as Open Document Format line breaks.
Ben Pfaff [Tue, 18 Mar 2014 06:05:26 +0000 (23:05 -0700)]
odt: Format newlines in table cells as Open Document Format line breaks.

Otherwise separate lines run together in the table cells, even though they
are represented as new-lines in the XML.

10 years agocsv-file-writer: Write all line breaks in system-specific format.
Ben Pfaff [Sun, 16 Mar 2014 18:47:54 +0000 (11:47 -0700)]
csv-file-writer: Write all line breaks in system-specific format.

Reported by Andre Müller.
Bug #41852.

10 years agoAllow variable labels longer than 255 bytes.
Ben Pfaff [Sun, 16 Mar 2014 17:22:34 +0000 (10:22 -0700)]
Allow variable labels longer than 255 bytes.

Reported by Andre Müller.
Bug #41863.

10 years agoFix warnings about casts between pointers and differently sized integers.
Ben Pfaff [Sun, 9 Mar 2014 23:02:10 +0000 (16:02 -0700)]
Fix warnings about casts between pointers and differently sized integers.

Doesn't seem to fix any real problems, but GCC on x86-64 complained.

10 years agoline-reader: Fix bad math when size_t is bigger than off_t.
Ben Pfaff [Sun, 9 Mar 2014 23:01:25 +0000 (16:01 -0700)]
line-reader: Fix bad math when size_t is bigger than off_t.

When size_t is bigger than off_t, pos - r->length will end up very large,
instead of negative, when r->length > pos, so the MAX didn't help to get
rid of negative values.  I'm not sure that this should really happen in
practice, but it's better to avoid it.

Reported by GCC on x86-64.

10 years agosys-file-reader: Fix bad printf format specifiers.
Ben Pfaff [Sun, 9 Mar 2014 23:00:04 +0000 (16:00 -0700)]
sys-file-reader: Fix bad printf format specifiers.

Found by GCC on x86-64.

10 years agoAdded some accelerator keys to the menu items. 20140308030511/pspp
John Darrington [Fri, 7 Mar 2014 08:00:25 +0000 (09:00 +0100)]
Added some accelerator keys to the menu items.

Thanks to Dr. Soumalya Ray for reporting this deficiency.

10 years agosrc/libpspp/zip-reader.c: Possible fix for windoze ODS reading issues. 20140227030508/pspp 20140228030505/pspp 20140301030504/pspp 20140302030505/pspp 20140303030503/pspp 20140304030518/pspp 20140305030503/pspp 20140306030505/pspp
John Darrington [Wed, 26 Feb 2014 08:07:47 +0000 (09:07 +0100)]
src/libpspp/zip-reader.c: Possible fix for windoze ODS reading issues.

Problems unzipping ODS files have been reported on windows.  This change
might fix them.

10 years agoFix issue reported on macos where the toolbar icons were not displayed. 20140223030508/pspp 20140224030519/pspp 20140225030507/pspp 20140226030518/pspp
John Darrington [Sat, 22 Feb 2014 19:02:34 +0000 (20:02 +0100)]
Fix issue reported on macos where the toolbar icons were not displayed.

This was caused because we set a default icon size when some icons at
that size did not exist.

10 years agoReplace syntactical keywords in error/warning messages by printf directives
John Darrington [Sat, 22 Feb 2014 17:20:20 +0000 (18:20 +0100)]
Replace syntactical keywords in error/warning messages by printf directives

Continuing the effort started in commit eb06da6a334bc37108cdce9bfc7f26cfcb2003ee

10 years agoFixed bug importing ODS files.
John Darrington [Sat, 22 Feb 2014 14:07:31 +0000 (15:07 +0100)]
Fixed bug importing ODS files.

There was a typo which caused the import of ODS files in the gui to
not properly function.  This change fixes the typo, but also re-arranges
the code such that similar errors are less likely to go unnoticed in the
future.  It also brings the code more in concord with the GNU Coding
Standards (which were written that way exactly to prevent these errors).

Fixes bug #41657

10 years agoReplace syntactical keywords in error/warning messages by printf directives. 20140222030507/pspp
John Darrington [Fri, 21 Feb 2014 09:06:00 +0000 (10:06 +0100)]
Replace syntactical keywords in error/warning messages by printf directives.

A number of translators are still making the mistake of translating syntax
keywords in messages (such as "REPEAT") into thier literal equivalents in
the target language.  This change avoids the posibility of that mistake,
by removing the keywords from the translatable string.

10 years agosys-file-reader: Don't skip "too many value labels" test anymore. 20140221030518/pspp
Ben Pfaff [Thu, 20 Feb 2014 16:33:21 +0000 (08:33 -0800)]
sys-file-reader: Don't skip "too many value labels" test anymore.

Previously the maximum number of value labels depended on the size of
size_t, so that it was impossible to have too many on 64-bit systems, but
a recent change made the maximum number of value labels depend on the
size of unsigned int instead, so now 32- and 64-bit systems are the same.
This commit reverts the code that skips the test.

10 years agoi18n: Fix typo in test.
Ben Pfaff [Thu, 20 Feb 2014 16:25:13 +0000 (08:25 -0800)]
i18n: Fix typo in test.

UTF8 is written UTF-8 elsewhere.  It looks like Mac OS X only accepts the
latter spelling.

Reported by Jeremy Lavergne.