|
Packit Service |
f629e6 |
# From sbohdjal@matrox.com Tue Dec 31 11:41:25 2002
|
|
Packit Service |
f629e6 |
# Return-Path: <sbohdjal@matrox.com>
|
|
Packit Service |
f629e6 |
# X-From_: sbohdjal@matrox.com Mon Dec 30 17:34:41 2002
|
|
Packit Service |
f629e6 |
# Message-Id: <4.3.1.1.20021230101824.00fc4bd8@mailbox.matrox.com>
|
|
Packit Service |
f629e6 |
# Date: Mon, 30 Dec 2002 10:33:10 -0500
|
|
Packit Service |
f629e6 |
# To: bug-gawk@gnu.org
|
|
Packit Service |
f629e6 |
# From: Serge Bohdjalian <sbohdjal@matrox.com>
|
|
Packit Service |
f629e6 |
# Subject: GAWK 3.1.1 bug, DJGPP port
|
|
Packit Service |
f629e6 |
#
|
|
Packit Service |
f629e6 |
# When I run the following AWK file...
|
|
Packit Service |
f629e6 |
#
|
|
Packit Service |
f629e6 |
BEGIN {
|
|
Packit Service |
f629e6 |
$0 = "00E0";
|
|
Packit Service |
f629e6 |
print $0 ", " ($0 && 1) ", " ($0 != "");
|
|
Packit Service |
f629e6 |
$1 = "00E0";
|
|
Packit Service |
f629e6 |
print $1 ", " ($1 && 1) ", " ($1 != "");
|
|
Packit Service |
f629e6 |
}
|
|
Packit Service |
f629e6 |
#
|
|
Packit Service |
f629e6 |
# With the SimTel version of GAWK 3.1.1 for Windows (downloadable from
|
|
Packit Service |
f629e6 |
# ftp://ftp.cdrom.com/pub/simtelnet/gnu/djgpp/v2gnu/), I get the following
|
|
Packit Service |
f629e6 |
# output...
|
|
Packit Service |
f629e6 |
#
|
|
Packit Service |
f629e6 |
# 00E0, 0, 1
|
|
Packit Service |
f629e6 |
# 00E0, 1, 1
|
|
Packit Service |
f629e6 |
#
|
|
Packit Service |
f629e6 |
# With the Cygwin version of GAWK 3.1.1 for Windows, I get...
|
|
Packit Service |
f629e6 |
#
|
|
Packit Service |
f629e6 |
# 00E0, 1, 1
|
|
Packit Service |
f629e6 |
# 00E0, 1, 1
|
|
Packit Service |
f629e6 |
#
|
|
Packit Service |
f629e6 |
# As far as I know, if "$0" isn't blank, the value of "($0 && 1)" should be
|
|
Packit Service |
f629e6 |
# "1" (true). I get the same problem if I substitute "00E0" with "00E1" to
|
|
Packit Service |
f629e6 |
# "00E9". Other strings don't have have this problem (for example, "00EA").
|
|
Packit Service |
f629e6 |
# The problem occurs whether I use file input or whether I manually assign
|
|
Packit Service |
f629e6 |
# "$0" (as above).
|
|
Packit Service |
f629e6 |
#
|
|
Packit Service |
f629e6 |
# The problem is also discussed in a comp.lang.awk posting ("Bug in GAWK
|
|
Packit Service |
f629e6 |
# 3.1.1?", Dec. 27, 2002).
|
|
Packit Service |
f629e6 |
#
|
|
Packit Service |
f629e6 |
# -Serge
|