Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112717363
D31199.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
758 B
Referenced Files
None
Subscribers
None
D31199.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D31199: awk: revert upstream's attempt to disallow hex strings
Attached
Detach File
Event Timeline
Log In to Comment