245cd1880b
incorrect field calculation for the second field if the first field is numeric and there are only 2 fields total in the input record (line). The buggy awk was in 2.99.* and early 3.99.*, and identifies itself as awk version 20030729. However, not all awk's with this version number exhibit the problem (so it could be related to a library used by awk). Recent 3.99.* builds don't have this problem, and the awk versio on them is also much more recent.
25 lines
639 B
Text
25 lines
639 B
Text
$NetBSD: patch-af,v 1.1 2005/12/29 16:09:42 kim Exp $
|
|
|
|
Setting FS in some versions of awk makes it null. The default FS of
|
|
"whitespace" works fine, so no need to redefine it.
|
|
|
|
--- src/mkerrcodes.awk.orig 2004-04-22 16:30:12.000000000 +0300
|
|
+++ src/mkerrcodes.awk 2005-12-24 15:36:22.000000000 +0200
|
|
@@ -54,7 +54,7 @@
|
|
# as is trailing whitespace.
|
|
|
|
BEGIN {
|
|
- FS="[ \t]+GPG_ERR_";
|
|
+ #FS="[ \t]+GPG_ERR_";
|
|
print "/* Output of mkerrcodes.awk. DO NOT EDIT. */";
|
|
print "";
|
|
header = 1;
|
|
@@ -85,7 +85,7 @@
|
|
if (/^$/)
|
|
next;
|
|
|
|
- print " { " $1 ", \"GPG_ERR_" $2 "\" },";
|
|
+ print " { " $1 ", \"" $2 "\" },";
|
|
}
|
|
|
|
END {
|