Package: gawk
Version: 1:3.1.5.dfsg-4
Hi,
this issue was reported on the bug-gnu-utils mailing list:
See http://lists.gnu.org/archive/html/bug-gnu-utils/2006-03/msg00004.html
The awk script is
BEGIN {
str = "type=\"directory\" version=\"1.0\""
#print "BEGIN:", str
while (str) {
sub(/^[^=]*/, "", str);
s = substr(str, 2)
print s
sub(/^="[^"]*"/, "", str)
sub(/^[ \t]*/, "", str)
}
}
Before patching:
$ gawk -f test.file
"directory" version="1.0"
"dire
After patching:
$ gawk -f test.file
"directory" version="1.0"
"1.0"
It's another instance where the "shadow" multibyte information is not
correctly invalidated after that per-byte information is modified.
A patch from the mailing list (modified to be a dpatch) is available at
http://librarian.launchpad.net/2621756/20_sub_common_wide.dpatch
Thanks,
Gary.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]