Package: gawk
Version: 1:4.0.1+dfsg-2.1
Severity: normal

Dear Maintainer,

when trying to build a script to format some iCal records
with different timezones, I found following bug, while using the construct:

        retval= (date +fmt --date=datestr | getline buf); 

The first call allways works as expectet.
The second call fails with retval=0,
if fmt as well as datestr did not change since the first call.
Even small changes in fmt or datestr make the call work.

Most of my dates are different, but a few have duplikates, 
and exactly these duplicates always fail in the script.
I reduced the script to the core of this behaviour
and append it in 3 versions test1, test2, test3.
These 3 tests work on dummy and were called with
        ./test.sh >test_result_G3.txt
The result-file is appended too.

I made the same test on my Apple G3
and on my Asus EeePC 1011X,
the result was exactly the same.
Both system informations below.


Kind regards, Bernward.



-- System Information G3:
Debian Release: 7.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (500, 'oldstable')
Architecture: powerpc (ppc)

Kernel: Linux 3.2.0-4-powerpc
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to de_DE.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gawk depends on:
ii  libc6         2.13-38+deb7u6
ii  libreadline6  6.2+dfsg-0.1
ii  libsigsegv2   2.9-4

gawk recommends no packages.

Versions of packages gawk suggests:
pn  gawk-doc  <none>

-- no debconf information


-- System Information 1011X:
Debian Release: 7.6
  APT prefers stable
  APT policy: (500, 'stable'), (500, 'oldstable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gawk depends on:
ii  libc6         2.13-38+deb7u4
ii  libreadline6  6.2+dfsg-0.1
ii  libsigsegv2   2.9-4

gawk recommends no packages.

Versions of packages gawk suggests:
pn  gawk-doc  <none>

-- no debconf information

Attachment: test_awk_date.tgz
Description: GNU Zip compressed data

Reply via email to