Changes:
- fixed long-standing overflow bug in run.c; many thanks to
nelson beebe for spotting it and providing the fix.
- fixed bug that didn't parse -vd=1 properly; thanks to santiago
vila for spotting it.
PR: ports/152025
Submitted by: Pedro F. Giffuni <giffunip@tutopia.com>
Approved by: maintainer (timeout, 18 days)
- Add one fix from src/usr.bin/awk/lib.c.diff rev 1.2
- Normalize DIST_SUBDIR as other ports
PR: ports/114227
Submitted by: Pedro F. Giffuni <giffunip at tutopia.com>
the internationalization changes, somewhat modified, are now
reinstated. in theory awk will now do character comparisons
and case conversions in national language, but "." will always
be the decimal point separator on input and output regardless
of national language. isblank(){} has an #ifndef.
fixed subtle behavior in field and record splitting: if FS is
a single character and RS is not empty, \n is NOT a separator.
this tortuous reading is found in the awk book; behavior now
matches gawk and mawk.
for the moment, the internationalization changes of nov 29 are
rolled back -- programs like x = 1.2 don't work in some locales,
because the parser is expecting x = 1,2. until i understand this
better, this will have to wait.
Approved by: knu(portmgr)
I didn't really take the patches from the PR, since 95% of them
where tab to space conversions. Also tweaked the makefile to use
${CC} instead of cc. The distinfo change is because of the rollout
of a new version, of which the Makefile was already changed but the
distinfo not.
PR: ports/44281
Submitted by: Steven G. Kargl <kargl@troutmask.apl.washington.edu>
Some commentary from Mr. bwk:
Mar 5, 1999:
after hearing from yet another innocent victim, changed
isnumber to is_number to avoid the problem caused by
freeBSD gratuitously and incorrectly including the name
isnumber in the standard header file ctype.h.
Prompted by: bento