millert
c35264f991
Disable utf-8 for non-multibyte locales, such as C or POSIX.
...
This makes it possible to get the old awk behavior (where chars are
bytes) by setting LC_CTYPE to C or POSIX. OK schwarze@
2023-09-18 19:32:19 +00:00
millert
a886e62e97
Update to the One True Awk, 2nd edition (Sep 12, 2023).
...
This corresponds to the 2nd edition of "The AWK Programming Language"
and adds support for UTF-8 and comma-separated value inputs.
2023-09-17 14:49:44 +00:00
millert
c4bbc4f754
Avoid a potential buffer overflow in backslash escaping.
...
https://github.com/onetrueawk/awk/issues/121
2021-07-08 21:26:39 +00:00
millert
ff3903525f
Fix size computation in replace_repeat() for special_case REPEAT_WITH_Q.
...
This resulted in the NUL terminator being written to the end of the
buffer which was not the same as the end of the string. That in
turn caused garbage bytes from malloc() to be processed. Also
change the NUL termination to be less error prone by writing the
NUL immediately after the last byte copied. OK sthen@
2021-03-02 20:41:42 +00:00
millert
483fa115c6
Update awk to December 8, 2020 version.
...
Prevents strings beginning with "inf" or "nan" from being interpreted
as infinity or not-a-number respectively which still parsing "inf"
and "nan" (with or without a leading sign) correctly.
2020-12-09 20:00:11 +00:00
millert
5df2889f99
Update awk to July 30, 2020 version.
2020-07-30 17:45:44 +00:00
millert
b7fdcd16d5
Cast to uschar when storing a char in an int that will be used as an index.
...
Fixed as crash reported by Jan Stary when the input char has the high
bit set and FS is a regex.
2020-07-13 14:03:52 +00:00
millert
115bd590ca
Update awk to June 25, 2020 version.
2020-06-26 15:57:39 +00:00
millert
fabd211e95
Update awk to Jan 31, 2020 version.
2020-06-10 21:05:02 +00:00
millert
9249712967
Update awk to Jan 5, 2020 version.
2020-06-10 21:04:40 +00:00
millert
f81b289f59
Update awk to Nov 10, 2019 version.
2020-06-10 21:03:56 +00:00
millert
d7cce23916
Update awk to Oct 24, 2019 version.
2020-06-10 21:03:36 +00:00
millert
77a7feaf48
Update awk to Oct 17, 2019 version.
2020-06-10 21:03:12 +00:00
millert
ec104564b0
Update awk to Oct 6, 2019 version.
2020-06-10 21:02:53 +00:00
millert
c0fa36112e
Update awk to Sep 10, 2019 version.
2020-06-10 21:02:33 +00:00
millert
203f9af320
Update awk to Jun 17, 2019 version.
2020-06-10 21:02:19 +00:00
millert
241a7d030b
Update awk to March 5, 2019 version.
2020-06-10 21:01:50 +00:00
millert
02265e669a
Update awk to Jan 25, 2019 version.
2020-06-10 21:01:32 +00:00
millert
c062391adb
Update awk to Aug 23, 2018 version.
2020-06-10 21:00:01 +00:00
millert
7bcc45ac75
POSIX requires that awk support \v and \a escapes. I used '\007'
...
for BEL since that is what lex.c uses, though we could safely use
'\a' there instead. OK martijn@
2018-01-24 16:28:25 +00:00
deraadt
5dd7c43cc8
rename dprintf macro to DPRINTF to avoid collision with libc posix dprintf.
...
(amazing to me that the posix name was chosen though it specifically
collides with code Kernighan maintained since the V7).
ok millert
2017-10-09 14:51:31 +00:00
deraadt
e6a8808bf8
Use reallocarray() where suitable
...
ok millert doug
2014-12-19 19:28:55 +00:00
millert
000399a40c
Update awk to Aug 10, 2011 version; naddy@ reports no ports problems
...
from the update.
2011-09-28 19:27:18 +00:00
millert
d69726353b
Update awk to May 23, 2010 version. OK miod@
2010-06-13 17:58:19 +00:00
millert
80b86fb08e
Update awk to version 20071023; OK deraadt@
2008-10-06 20:38:33 +00:00
deraadt
1ed98fdf61
use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg
2007-09-02 15:19:07 +00:00
pvalchev
412846d539
more sane calloc(3) usage; from adobriyan@gmail.com, ok millert
2006-03-19 18:17:11 +00:00
millert
23cb51ab26
Update to version 20041222; OK deraadt@
2004-12-30 01:52:48 +00:00
millert
9a69093aa0
Update to the One True Awk version 20021213
2002-12-19 21:24:28 +00:00
millert
a27f52287e
Update to latest version of the One True Awk. See the FIXES file
...
for details.
2001-09-08 00:12:40 +00:00
deraadt
c3e1e82e9b
first pass at a -Wall cleanup
2001-07-12 05:16:53 +00:00
millert
7b11b857a5
June 6, 1999 version of the "one true awk"
...
Most of the changes are to avoid using a static buffer for error messages.
1999-12-08 23:09:45 +00:00
millert
271018d036
April 16, 1999 version of the "one true awk"--64-bit fixes and more.
1999-04-20 17:31:25 +00:00
millert
a4fa870006
March 5, 1999 version of the "one true awk"
1999-04-18 17:06:29 +00:00
kstailey
07edfa4a9b
August 1997 version of "the one true awk"
1997-08-25 16:17:07 +00:00
millert
0a80cfdaca
Back out last changes for now. They cause problems.
1997-04-07 15:59:53 +00:00
millert
696ad2caee
Use long, not int when casting pointers and storing as integers.
...
Now compiles on alpha w/o warnings.
1997-04-06 06:31:45 +00:00
millert
b2698ba906
Latest research awk from June 29, 1996
1997-01-20 19:43:15 +00:00
tholo
6ab05f83d6
AT&T awk, by B. W. Kernighan, with fixes from 4.4BSD and by me
1996-07-04 20:34:34 +00:00