Page MenuHomeFreeBSD

D31199.diff
No OneTemporary

D31199.diff

diff --git a/contrib/one-true-awk/lib.c b/contrib/one-true-awk/lib.c
--- a/contrib/one-true-awk/lib.c
+++ b/contrib/one-true-awk/lib.c
@@ -793,9 +793,18 @@
while (isspace(*s))
s++;
+/*
+ * This test, while allowed by newer POSIX standards, represents a regression
+ * where hex strings were treated as numbers in nawk the whole time it has been
+ * in FreeBSD (since 2001). The POSIX 2001 through 2004 standards mandated this
+ * behavior and the current standard allows it. Deviate from upstream by restoring
+ * the prior FreeBSD behavior.
+ */
+#if 0
// no hex floating point, sorry
if (s[0] == '0' && tolower(s[1]) == 'x')
return false;
+#endif
// allow +nan, -nan, +inf, -inf, any other letter, no
if (s[0] == '+' || s[0] == '-') {

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 22, 9:14 PM (13 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17260535
Default Alt Text
D31199.diff (758 B)

Event Timeline