pspp
3 years agoRestore the mime defintion file pspp.xml
John Darrington [Sun, 18 Oct 2020 08:15:35 +0000 (10:15 +0200)]
Restore the mime defintion file pspp.xml

Commit 8ec823cac8dd9eee5d0ad6cee9d001b9fdb673ba inadvertently
removed pspp.xml - the mime definition file.  This change
restores it and also takes it out of the gui definition directory.

3 years agoAdd default to generate prerequisistes for any rule
John Darrington [Sat, 17 Oct 2020 15:48:03 +0000 (17:48 +0200)]
Add default to generate prerequisistes for any rule

3 years agoMove org.fsf.pspp.* to doc
John Darrington [Sat, 17 Oct 2020 07:36:20 +0000 (09:36 +0200)]
Move org.fsf.pspp.* to doc

org.fsf.pspp.desktop and org.fsf.pspp.metainfo.xml are not part of
the user interface per se.   Rather, they are documentation

3 years agoMakefile.am: Add built-sources target.
Ben Pfaff [Mon, 12 Oct 2020 01:51:07 +0000 (18:51 -0700)]
Makefile.am: Add built-sources target.

This makes it easier to test targets that need the built sources built
first, e.g. "make clean && make built-sources && make src/ui/terminal/pspp"

3 years agoFix build of pspp.xml
John Darrington [Sun, 11 Oct 2020 17:13:52 +0000 (19:13 +0200)]
Fix build of pspp.xml

3 years agoREADME.Git: Increase gnulib version.
Ben Pfaff [Sun, 11 Oct 2020 02:58:17 +0000 (19:58 -0700)]
README.Git: Increase gnulib version.

Commmit 1b53d13b2b8a ("relocatable-prog: Fix for multiple relocatable
library directories.") is needed for a commit I plan to make.  This is
an update to the newest gnulib version.

3 years agoAdd extra code examples to the documentation
John Darrington [Sat, 10 Oct 2020 18:59:08 +0000 (20:59 +0200)]
Add extra code examples to the documentation

Add some examples of code to the manual and autogenerate
the results of running that code.  Addresses bug #51079

3 years agoUpdate to a more modern version of texinfo.tex
John Darrington [Sat, 10 Oct 2020 18:16:27 +0000 (20:16 +0200)]
Update to a more modern version of texinfo.tex

3 years agoRework the spreadsheet import feature of the grapic user interface
John Darrington [Sat, 10 Oct 2020 06:21:56 +0000 (08:21 +0200)]
Rework the spreadsheet import feature of the grapic user interface

This change adds a feature where the user can preview the data from
a spreadsheet when preparing to import it.    This should make importing
spreadsheets somewhat easier.  Some rework of the other import code
was also necessary as part of this change.

3 years agoUpdate version number to 1.5.2
John Darrington [Sun, 4 Oct 2020 06:51:11 +0000 (08:51 +0200)]
Update version number to 1.5.2

3 years agoRemove width specifications from range strings (eg %3d-%3d)
John Darrington [Sat, 3 Oct 2020 05:37:26 +0000 (07:37 +0200)]
Remove width specifications from range strings (eg %3d-%3d)

src/language/data-io/data-parser.c: Change %3d to %d
src/language/data-io/print.c: ditto

Having these width specifications resulted in an ugly space after
the dash.  Removing them means the the output is more aesthetically
pleasing in my opinion.

3 years agosrc/ui/gui/psppire-text-file.c (read_lines): Use const int instead of enum
John Darrington [Sat, 3 Oct 2020 05:34:10 +0000 (07:34 +0200)]
src/ui/gui/psppire-text-file.c (read_lines): Use const int instead of enum

3 years agoUpdate translations from translationproject.org
John Darrington [Sat, 3 Oct 2020 05:31:36 +0000 (07:31 +0200)]
Update translations from translationproject.org

3 years agoFix broken ./configure --without-gui (again)
John Darrington [Sat, 3 Oct 2020 05:24:16 +0000 (07:24 +0200)]
Fix broken ./configure --without-gui (again)

3 years agoEnsure that data sheet and variable sheets can be constructed via GtkBuilder.
John Darrington [Sat, 3 Oct 2020 05:18:47 +0000 (07:18 +0200)]
Ensure that data sheet and variable sheets can be constructed via GtkBuilder.

This change removes the reliance of the _new functions on setting
necessary properties.  Otherwise these objects do not get set
when constructed by GtkBuilder.

3 years agoAdd remaining custom psppire widgets to our glade tools
John Darrington [Sat, 3 Oct 2020 05:10:42 +0000 (07:10 +0200)]
Add remaining custom psppire widgets to our glade tools

3 years agosrc/ui/gui/t-test.ui: Remove deprecated properties
John Darrington [Sat, 3 Oct 2020 05:07:00 +0000 (07:07 +0200)]
src/ui/gui/t-test.ui: Remove deprecated properties

3 years agoadded spreadsheetwidget CFLAGS to automake
Friedrich Beckmann [Thu, 1 Oct 2020 07:28:26 +0000 (09:28 +0200)]
added spreadsheetwidget CFLAGS to automake

The build now honours the CFLAGS which are provided by pkgconfig
for the spread-sheet-widget.

3 years agoPsppire: On irrecoverable error display fatal error dialog
John Darrington [Sat, 5 Sep 2020 03:08:12 +0000 (05:08 +0200)]
Psppire: On irrecoverable error display fatal error dialog

3 years agoAvoid calling stdio function calls from within signal handler.
John Darrington [Sat, 5 Sep 2020 03:08:12 +0000 (05:08 +0200)]
Avoid calling stdio function calls from within signal handler.

fprintf &c is unsafe in a signal handler, because it is non-reentrant.
This change therefore uses write, and prepares the message to be
printed outside of the handler.

3 years agopsppire.xml: Replace placeholder strings, add missing widgets and sort
John Darrington [Sun, 27 Sep 2020 09:29:15 +0000 (11:29 +0200)]
psppire.xml: Replace placeholder strings, add missing widgets and sort

3 years agoPspppireKeypad: Add tooltips to buttons
John Darrington [Sat, 26 Sep 2020 06:37:46 +0000 (08:37 +0200)]
PspppireKeypad: Add tooltips to buttons

3 years agoacinclude.m4: Remove one oxymoron and one tautology
John Darrington [Sat, 26 Sep 2020 20:48:03 +0000 (22:48 +0200)]
acinclude.m4: Remove one oxymoron and one tautology

3 years agosrc/ui/gui/psppire-window-base.c: Remove erroneous "return"
John Darrington [Sat, 26 Sep 2020 06:37:46 +0000 (08:37 +0200)]
src/ui/gui/psppire-window-base.c: Remove erroneous "return"

Don't attempt to return a value from a function returning void

3 years agoPsppireKeypad: Remove deprecated properties
John Darrington [Sun, 20 Sep 2020 19:10:56 +0000 (21:10 +0200)]
PsppireKeypad: Remove deprecated properties

3 years agosrc/ui/gui/psppire.xml: Add definition of PsppireKeypad
John Darrington [Sun, 20 Sep 2020 19:09:56 +0000 (21:09 +0200)]
src/ui/gui/psppire.xml: Add definition of PsppireKeypad

3 years agoOneway Dialog: Remove deprecated properties
John Darrington [Sat, 19 Sep 2020 20:07:46 +0000 (22:07 +0200)]
Oneway Dialog: Remove deprecated properties

3 years agoReliability Dialog: Remove depdecated properties
John Darrington [Sat, 19 Sep 2020 20:00:12 +0000 (22:00 +0200)]
Reliability Dialog: Remove depdecated properties

3 years agoFactor Dialog: Remove depdecated properties
John Darrington [Sat, 19 Sep 2020 20:00:00 +0000 (22:00 +0200)]
Factor Dialog: Remove depdecated properties

3 years agoAggregate Dialog Box: Remove deprecated properties
John Darrington [Sat, 19 Sep 2020 19:48:39 +0000 (21:48 +0200)]
Aggregate Dialog Box: Remove deprecated properties

3 years agoRecode Dialog Box: Remove deprecated properties
John Darrington [Sat, 19 Sep 2020 19:37:04 +0000 (21:37 +0200)]
Recode Dialog Box: Remove deprecated properties

3 years agopsppire.xml: Add PsppireAcr and PsppireValChooser
John Darrington [Sat, 19 Sep 2020 19:22:58 +0000 (21:22 +0200)]
psppire.xml: Add PsppireAcr and PsppireValChooser

3 years agoSelect Cases Dialog: Make the 'All Cases' button easier to select.
John Darrington [Sat, 19 Sep 2020 06:54:40 +0000 (08:54 +0200)]
Select Cases Dialog: Make the 'All Cases' button easier to select.

The radiobutton area is very small and hard to click.
This change adds an Eventbox under the corresponding
label, So clicking on the label will have the same effect.

3 years agoSelect Cases Dialog: Cosmetic Improvements
John Darrington [Sat, 19 Sep 2020 05:44:11 +0000 (07:44 +0200)]
Select Cases Dialog: Cosmetic Improvements

3 years agoRank Dialog: Cosmetic Improvements
John Darrington [Sat, 19 Sep 2020 05:31:25 +0000 (07:31 +0200)]
Rank Dialog: Cosmetic Improvements

3 years agoFrequencies Dialog: Cosmetic Improvements
John Darrington [Sat, 19 Sep 2020 05:19:13 +0000 (07:19 +0200)]
Frequencies Dialog: Cosmetic Improvements

3 years agoExamine Spreadlevel: Allow power to be non-integer
John Darrington [Sat, 19 Sep 2020 04:22:09 +0000 (06:22 +0200)]
Examine Spreadlevel: Allow power to be non-integer

3 years agoExamine Plots Dialog : Set combo box sensitivity
John Darrington [Sat, 19 Sep 2020 04:21:14 +0000 (06:21 +0200)]
Examine Plots Dialog : Set combo box sensitivity

3 years agosrc/ui/gui/psppire-dialog-action-examine.c: constness
John Darrington [Sat, 19 Sep 2020 04:20:00 +0000 (06:20 +0200)]
src/ui/gui/psppire-dialog-action-examine.c: constness

3 years agoExamine Dialog: Cosmetic improvements
John Darrington [Sat, 19 Sep 2020 04:18:43 +0000 (06:18 +0200)]
Examine Dialog:  Cosmetic improvements

3 years agodoc/invoking.texi (Main Options): Correct minor informational error
John Darrington [Sat, 19 Sep 2020 04:15:50 +0000 (06:15 +0200)]
doc/invoking.texi (Main Options): Correct minor informational error

3 years agometainfo - changed url from commit to tree
Friedrich Beckmann [Tue, 15 Sep 2020 10:07:10 +0000 (12:07 +0200)]
metainfo - changed url from commit to tree

3 years agometainfo: added releases 1.4.0 and 1.4.1
Friedrich Beckmann [Tue, 15 Sep 2020 10:01:55 +0000 (12:01 +0200)]
metainfo: added releases 1.4.0 and 1.4.1

3 years agometainfo: Fixed typos in metainfo
Friedrich Beckmann [Tue, 15 Sep 2020 09:53:00 +0000 (11:53 +0200)]
metainfo: Fixed typos in metainfo

Jaap Verhage found several wrong wordings. I changed them according
to his proposals. See:

https://lists.gnu.org/archive/html/pspp-dev/2020-09/msg00058.html

3 years agopsppire: add "Plots" subdialog for examine (Explore)
Friedrich Beckmann [Sun, 13 Sep 2020 21:55:00 +0000 (23:55 +0200)]
psppire: add "Plots" subdialog for examine (Explore)

Closes: https://savannah.gnu.org/bugs/?49674
3 years agoPsppire: Move Mac OS specific code to its own file
John Darrington [Sun, 13 Sep 2020 11:46:20 +0000 (13:46 +0200)]
Psppire: Move Mac OS specific code to its own file

3 years agoPercentiles: Remove unused static data
John Darrington [Sat, 12 Sep 2020 20:03:15 +0000 (22:03 +0200)]
Percentiles: Remove unused static data

3 years agoUse PACKAGE_BUGREPORT instead of a literal string
John Darrington [Sat, 12 Sep 2020 17:31:58 +0000 (19:31 +0200)]
Use PACKAGE_BUGREPORT instead of a literal string

3 years agoRemove obsolete acknowlegdement.
John Darrington [Sat, 12 Sep 2020 17:16:03 +0000 (19:16 +0200)]
Remove obsolete acknowlegdement.

Network Theory Ltd. have been dissolved so they cannot benefit from our
acknowledgement.

3 years agoi18n: Fix use of const qualifiers in create_iconv().
Ben Pfaff [Sat, 12 Sep 2020 16:53:52 +0000 (09:53 -0700)]
i18n: Fix use of const qualifiers in create_iconv().

Only the inbuf parameter of iconv() takes a const qualifier, on some POSIX
nonconforming systems, but all of its parameters were qualified here, which
caused warnings on those nonconforming systems.  This fixes the problem.

Found with win-iconv for mingw.

3 years agoRegression Dialog: Reduce the size of the Independent Variables widget.
John Darrington [Sat, 12 Sep 2020 12:35:18 +0000 (14:35 +0200)]
Regression Dialog: Reduce the size of the Independent Variables widget.

It is uncommon to perform a linear regression on many predictor variables.
But it is quite common to have many depdendent variables.  This change
reduces the size of the predictor variable view widget and increases the
size of the regressor variable view widget.

3 years agoREADME.Git: Remove mention of --with-gui-tools.
John Darrington [Sat, 12 Sep 2020 05:35:25 +0000 (07:35 +0200)]
README.Git: Remove mention of --with-gui-tools.

This information is obsolete.

3 years agoAdd static qualifiers where appropriate.
John Darrington [Sat, 12 Sep 2020 05:31:58 +0000 (07:31 +0200)]
Add static qualifiers where appropriate.

A number of items were defined in global scope.  This change
puts them into file scope.

3 years agopsppire-output: added drag-n-drop
Friedrich Beckmann [Fri, 11 Sep 2020 21:01:11 +0000 (23:01 +0200)]
psppire-output: added drag-n-drop

3 years agopsppire-output: disable the select-all menu
Friedrich Beckmann [Fri, 11 Sep 2020 16:50:14 +0000 (18:50 +0200)]
psppire-output: disable the select-all menu

The copy and paste only works on a single item.

3 years agopsppire-output-view: modified the way how copy and paste works
Friedrich Beckmann [Fri, 11 Sep 2020 16:33:54 +0000 (18:33 +0200)]
psppire-output-view: modified the way how copy and paste works

Copy (no Paste in output window) works now the usual gui way. You
can select an item in the output window like a table or a chart and
it will be highlighted. When you now do the copy operation via menu
or key, then the item is copied to the clipboard. With the change
the clipboard now provides the additional formats svg and various image
formats. You can now paste to inkscape, libreoffice suite and gimp.

3 years agocairo: added xr_draw_svg_file function
Friedrich Beckmann [Fri, 11 Sep 2020 16:32:13 +0000 (18:32 +0200)]
cairo: added xr_draw_svg_file function

This is used by the output window to render the items for copy and paste.

3 years agooutput view: make items selectable and use system colours
Friedrich Beckmann [Tue, 8 Sep 2020 21:48:08 +0000 (23:48 +0200)]
output view: make items selectable and use system colours

The items in the output window are now selectable and the
rendering uses the gtk3 style context for background
and default foreground colours.

3 years agopspp-output: Make the binary relocatable.
Ben Pfaff [Mon, 7 Sep 2020 21:25:33 +0000 (14:25 -0700)]
pspp-output: Make the binary relocatable.

3 years agoHOST: Implement timeouts on Hurd.
Ben Pfaff [Mon, 7 Sep 2020 21:18:14 +0000 (14:18 -0700)]
HOST: Implement timeouts on Hurd.

The existing implementation didn't work and I do not know why.
Hurd isn't documented to have different behavior for signals on
execl().  The timeouts were not firing, however.

This implementation does work.

Thanks to Friedrich Beckmann for reporting the issue (via Debian
buildd).

3 years agoHOST: Check for setitimer() failure.
Ben Pfaff [Mon, 7 Sep 2020 21:16:15 +0000 (14:16 -0700)]
HOST: Check for setitimer() failure.

This is unlikely but it eliminates one possible problem during
debugging.

3 years agofixed typo in pl.po which breaks sed on MacOS
Friedrich Beckmann [Mon, 7 Sep 2020 21:06:06 +0000 (23:06 +0200)]
fixed typo in pl.po which breaks sed on MacOS

3 years agopo: Update translations from translationproject.org.
Ben Pfaff [Mon, 7 Sep 2020 17:45:50 +0000 (10:45 -0700)]
po: Update translations from translationproject.org.

3 years agopo: Add comment.
Ben Pfaff [Mon, 7 Sep 2020 17:45:22 +0000 (10:45 -0700)]
po: Add comment.

3 years agopo: Simplify wget command.
Ben Pfaff [Mon, 7 Sep 2020 17:45:12 +0000 (10:45 -0700)]
po: Simplify wget command.

https://translationproject.org/html/maintainers.html shows all
kinds of recursive options, but that's for retrieving all of the
po files in one go.  This makefile doesn't do that, so the
recursive options don't help and provoke warnings from wget.

3 years agopo: Don't regenerate po files just before replacing them.
Ben Pfaff [Mon, 7 Sep 2020 17:33:28 +0000 (10:33 -0700)]
po: Don't regenerate po files just before replacing them.

3 years agopo: Fix placement of $(AM_V_at) in automake.mk.
Ben Pfaff [Sun, 6 Sep 2020 19:20:06 +0000 (12:20 -0700)]
po: Fix placement of $(AM_V_at) in automake.mk.

It has to be at the beginning of the line because it is interpreted by
make, not by the shell.

Fixes: commit b703fcd74fda ("Fix build error when building --without-gui")
3 years agoCorrect the copyright holder named in some files.
John Darrington [Sun, 6 Sep 2020 14:04:54 +0000 (16:04 +0200)]
Correct the copyright holder named in some files.

For some reason, these files named myself as the copyright holder,
instead of the FSF.

3 years agometainfo.its: changed this from a build requirement to a warning
Friedrich Beckmann [Sun, 6 Sep 2020 10:43:59 +0000 (12:43 +0200)]
metainfo.its: changed this from a build requirement to a warning

When the build system is not capable to extract the strings from
org.fsf.pspp.metainfo.xml.in file, then this will not be translated.

3 years agoFix build error when building --without-gui
John Darrington [Sun, 6 Sep 2020 09:49:58 +0000 (11:49 +0200)]
Fix build error when building --without-gui

Closes bug #59069.

3 years agoUpdate version number to 1.4.2.
Ben Pfaff [Sat, 5 Sep 2020 23:37:19 +0000 (16:37 -0700)]
Update version number to 1.4.2.

3 years agoRelease version 1.4.1.
Ben Pfaff [Sat, 5 Sep 2020 23:15:27 +0000 (16:15 -0700)]
Release version 1.4.1.

This commit moves the version number *backward*, because we decided
that it was necessary to release 1.4.1 with all of the commits that
were currently on master.

3 years agopo: Delete temporary files to fix "make distcheck" error.
Ben Pfaff [Sat, 5 Sep 2020 23:13:56 +0000 (16:13 -0700)]
po: Delete temporary files to fix "make distcheck" error.

3 years agoMakefiles: Use $(PHONY) instead of .PHONY.
Ben Pfaff [Sat, 5 Sep 2020 22:08:33 +0000 (15:08 -0700)]
Makefiles: Use $(PHONY) instead of .PHONY.

Avoids a warning from Automake in Smake:

src/ui/gui/automake.mk:463: warning: .PHONY was already defined in condition TRUE, which includes condition HAVE_GUI ...
Makefile.am:91:   'src/automake.mk' included from here
src/automake.mk:55:   'src/ui/automake.mk' included from here
src/ui/automake.mk:21:   'src/ui/gui/automake.mk' included from here
po/automake.mk:128: ... '.PHONY' previously defined here
Makefile.am:87:   'po/automake.mk' included from here

3 years agoadded appstream as a build requirement
Friedrich Beckmann [Sat, 5 Sep 2020 15:24:17 +0000 (17:24 +0200)]
added appstream as a build requirement

appstream provides the metainfo.its file which is required for
xgettext to extract the translation strings of the
src/ui/gui/org.fsf.pspp.metainfo.xml.in file

The metainfo.its file is located in /usr/share/gettext/its on
debian and on opensuse. It is provided by the packages

debian:     appstream
opensuse:   AppStream-devel

3 years agopo/automake.mk: changed xgettext glade language to Glade
Friedrich Beckmann [Sat, 5 Sep 2020 15:19:09 +0000 (17:19 +0200)]
po/automake.mk: changed xgettext glade language to Glade

3 years agoRevert "po/metainfo.its: New file."
Friedrich Beckmann [Sat, 5 Sep 2020 15:17:37 +0000 (17:17 +0200)]
Revert "po/metainfo.its: New file."

This reverts commit e94442a3b00c1f22952586cc26b7be60617b93e1.

3 years agoRevert "Work around bug in xgettext 0.19.8.1"
Friedrich Beckmann [Sat, 5 Sep 2020 15:17:07 +0000 (17:17 +0200)]
Revert "Work around bug in xgettext 0.19.8.1"

This reverts commit df9ada336f1373c1144b7133a78c97ef5e7afdc3.

3 years agoWork around bug in xgettext 0.19.8.1
John Darrington [Sat, 5 Sep 2020 10:20:51 +0000 (12:20 +0200)]
Work around bug in xgettext 0.19.8.1

This version crashes on exit when passed a .its file.  So ignore the
exit status.

3 years agoUse g_ascii_strtoll instead of strtol.
John Darrington [Sat, 5 Sep 2020 03:08:12 +0000 (05:08 +0200)]
Use g_ascii_strtoll instead of strtol.

The former is locale sensitive.

3 years agopo-update rule: use wget rather than rsync
John Darrington [Sat, 5 Sep 2020 03:08:12 +0000 (05:08 +0200)]
po-update rule: use wget rather than rsync

Rsync is considered insecure these days

3 years agoRemove the --enable-debug configure option.
John Darrington [Sat, 5 Sep 2020 03:08:12 +0000 (05:08 +0200)]
Remove the --enable-debug configure option.

In practice, it is faster and simpler to make local modifications
to the respective files which debugging rather than reconfiguring
with --enable-debug.   Furthermore this is just another configure
option which confuses users and serves little purpose.

3 years agoCheck that merged po files are well formed.
John Darrington [Sat, 5 Sep 2020 03:08:12 +0000 (05:08 +0200)]
Check that merged po files are well formed.

3 years agosrc/ui/*/automake.mk: Conditionally include the gui automake file
John Darrington [Sat, 5 Sep 2020 02:31:28 +0000 (04:31 +0200)]
src/ui/*/automake.mk: Conditionally include the gui automake file

3 years agopo/automake.mk: Fixed typo in variable names.
John Darrington [Sat, 5 Sep 2020 02:31:28 +0000 (04:31 +0200)]
po/automake.mk: Fixed typo in variable names.

This resulted in po/pspp.pot not getting updated when it should have been.
This is a very good demonstration of the reason why carefully desigined
languages should insist on a variable being declared before it is used.

Also make the file depend on Makefile, so that it gets rebuilt when the
PACKAGE VERSION changes.

3 years agoDeal properly with EOF in the REPL, when built without readline
John Darrington [Sat, 5 Sep 2020 02:31:28 +0000 (04:31 +0200)]
Deal properly with EOF in the REPL, when built without readline

3 years agoutitilites/pspp-output.c: Deal properly with plural forms
John Darrington [Sat, 5 Sep 2020 02:31:28 +0000 (04:31 +0200)]
utitilites/pspp-output.c: Deal properly with plural forms

3 years agoupdated german translation de.po
Friedrich Beckmann [Wed, 2 Sep 2020 22:31:50 +0000 (00:31 +0200)]
updated german translation de.po

3 years agodoc: Describe running the "rc" file at pspp startup.
Ben Pfaff [Wed, 2 Sep 2020 06:17:50 +0000 (23:17 -0700)]
doc: Describe running the "rc" file at pspp startup.

Bug #54376.
Thanks to Harry Thijssen for reporting this bug.

3 years agodoc/manual: Remove gitignore file in otherwise empty directory.
Ben Pfaff [Wed, 2 Sep 2020 06:02:44 +0000 (23:02 -0700)]
doc/manual: Remove gitignore file in otherwise empty directory.

I added this by mistake some time ago.  It's not useful.

3 years agotests: Add missing host.at tests.
Ben Pfaff [Wed, 2 Sep 2020 05:55:45 +0000 (22:55 -0700)]
tests: Add missing host.at tests.

Thanks to Friedrich Beckmann for reporting the problem.

3 years agoencoding-guesser: Explain UTF-16, UTF-16BE, UTF-16LE distinctions.
Ben Pfaff [Wed, 2 Sep 2020 05:49:43 +0000 (22:49 -0700)]
encoding-guesser: Explain UTF-16, UTF-16BE, UTF-16LE distinctions.

3 years agou8-istream: Add some more tests for byte-order marks.
Ben Pfaff [Wed, 2 Sep 2020 05:49:16 +0000 (22:49 -0700)]
u8-istream: Add some more tests for byte-order marks.

3 years agomake-file: Pass O_BINARY or O_TEXT to open() call in replace_file_start().
Ben Pfaff [Wed, 2 Sep 2020 04:42:35 +0000 (21:42 -0700)]
make-file: Pass O_BINARY or O_TEXT to open() call in replace_file_start().

It's hard to imagine why this would make a difference on a real system,
because the file descriptor obtained from open() is passed to fdopen(),
which is documented to determine whether the stream is text or binary
based on the mode string.  However, bug #40223 implies that it makes a
difference.  I hope that this commit fixes the problem (if any!).

Thanks to the anonymous submitter of bug #40223.

3 years agocsv-file-writer: Fix typo in user message.
Ben Pfaff [Wed, 2 Sep 2020 04:40:46 +0000 (21:40 -0700)]
csv-file-writer: Fix typo in user message.

3 years agoHOST: Reimplement and add support for TIMELIMIT subcommand.
Ben Pfaff [Wed, 2 Sep 2020 01:54:00 +0000 (18:54 -0700)]
HOST: Reimplement and add support for TIMELIMIT subcommand.

Fixes bug #25816.
Thanks to John Darrington for reporting this bug.

3 years agotests: Add 'slow' tag to more tests.
Ben Pfaff [Mon, 31 Aug 2020 19:29:32 +0000 (12:29 -0700)]
tests: Add 'slow' tag to more tests.

This reduces the runtime of "make check TESTSUITEFLAGS='-k \!slow -j128'"
from 4.4 to 3.5 seconds on my computer.

3 years agospv-light-decoder: Avoid GCC 10.x warning in decode_spvlb_valign().
Ben Pfaff [Mon, 31 Aug 2020 18:00:24 +0000 (11:00 -0700)]
spv-light-decoder: Avoid GCC 10.x warning in decode_spvlb_valign().

It seems to be wrong, but GCC can't tell and it's hard to blame it.

3 years agovalue: Suppress uninitialized tmp.s warning in value_resize().
Ben Pfaff [Mon, 31 Aug 2020 17:29:52 +0000 (10:29 -0700)]
value: Suppress uninitialized tmp.s warning in value_resize().

This warning is wrong, but it should not cause a performance problem to
avoid it.  Encountered with GCC 10.x.

3 years agoMakefile.am: Suppress GCC 10.x warning in gl/careadlinkat.c.
Ben Pfaff [Mon, 31 Aug 2020 16:03:24 +0000 (09:03 -0700)]
Makefile.am: Suppress GCC 10.x warning in gl/careadlinkat.c.

This suppresses an error in gl/careadlinkat.c that otherwise can't be
avoided in GCC 10.x:
  ../../gl/careadlinkat.c: In function â€˜careadlinkat’:
  cc1: error: function may return address of local variable