This version fixes an issue in dc: the P command did not pop the value
being printed from the stack.
The major version bump is due to the addition of Windows compatibility
and does not correspond to a change of functionality on POSIX systems.
This version fixes a potential division be 0 in the extended math library
(in the non-standard function "root") and makes length(0) return 1 to
restore the behavior of the traditional bc in FreeBSD and of GNU bc.
There is one functional change with regard to -e of -f in BC_ENV_ARGS resp.
DC_ENV_ARGS: these do no longer make the program exit after processing the
commands passed that way (which prevented to use the environment variables
to set parameters for interactive sessions, unless -f- was passed as the
last argument on the command line).
This version improves the compatibility with the bc and dc in base under
two aspects:
1) Remove printing of the version and copyright message for interactive
invocations of bc an dc.
2) Make dc exit after execution of commands passed via -e or -f. To get
the behavior of version 3.1.3 back, "-f -" can be appended to the
command line to read from STDIN until EOF.
Approved by: antoine (implicit)
This version fixes an incompatibility with GNU bc:
The statement:
if (a > b) 1
was rejected, unless followed by "else 0".
Approved by: antoine (implicit)
This version fixes a warning when building with a strict warnings level
and significantly speeds up ceil() library function.
Approved by: antoine (implicit)
This version contains small changes to the new NLS files and const qualifiers
to silence the compiler if extra warnings are enabled.
Approved by: antoine (implicit)
This version fixes a problem that only affected getopt_long() on Linux
(or rather, the GLIBC implementation) by replacing its use by optparse().
In addition, this version features a PRNG that can be used to generate
arbitrary length pseudo-random numbers and 5 new translations (for Dutch,
Japanese, Polish, Russian, and Simplified Chinese).
These translations have been generated and verified with online tools
(https://www.deepl.com/translator and https://translate.google.com)
and might therefore not be fully correct - a review by native speakers
would be appreciated.
Approved by: antoine (implicit)
This version fixes a bug that only occured when building on FreeBSD
without long options support. It did not affect the port or package,
since it was always built with long options.
Approved by: antoine (implicit)
installed on FreeBSD. Therefore provide message catalogues according to
out naming scheme to include these files in the build.
Approved by: antoine (implicit)
Even though "poudriere testport" completed without error, I have received
a failure message from the build cluster. Since I cannot reproduce the
problem, I can only guess that it is caused by a symbolic link in the
share/nls directory that connects nls/C to nls/en_US.US-ASCII.
I had problems with the nls/C directory disappearing due to that link
before (it is deleted as empty when the last catalog file is deleted on
package deinstallation, but then missing when a new file is installed
into en_US.US-ASCII, which is just a symbolic link to C which does not
exist at that time anymore). I think this is a bug in "pkg" and have
opened a PR.
It is possible that the port will still fail to build in the cluster,
but without access to the work directory (or rather the stage directory)
of the build host I can only guess what's exactly going on.
IMHO there should not be any magic conenction between nls/en_US.US-ASCII
and nls/C, since this breaks assumptions made in pkg and in the qa check
performed by poudriere.
Approved by: antoine (implicit)
This version uses an optimized internal representation of the operands which
allows to speed up some operations by a significant factor (multiplication
of large numbers is now about 40 times as fast).
This version has been tested against a number of other bc implementations
and has been found to significantly outperform them all (incl. GNU bc).
There are no functional changes in this version, it is just much faster ...
Approved by: antoine (implicit)
This package exposes a bug (IMHO) in "pkg" which deletes the directory
pointed to by a symbolic link after removing the files within, but is
not able to recreate that directory when a package is installed.
It may be necessary to manually recreate ${LOCALBASE}/share/nls/C after
removal of this package, e.g. during a port upgrade.
This commit is meant to provide a test case for package maintainers
that hopefully will lead to this issue being fixed in "pkg".
Approved by: antoine (implicit)
This version adds message catalogs for French and German locales.
The messages for fr_CA and fr_CH have not been checked by native
speakers and might need some adjustment.
Approved by: antoine (implicit)
These programs have been used in a number of other projects over
many years and they are highly portable and heavily tested.
Obtained from: Gavin Howard <gavin.d.howard@gmail.com>
Approved by: antoine (mentor)