This would be so much easier (for me;) ) if all data forms were published by IANA. $ awk -v DATAFORM=vanguard -f ziguard.awk africa antarctica asia australasia europe northamerica southamerica etcetera systemv factory backward *malloc(): memory corruptionAborted (core dumped)* On Ubuntu 18.04 trying to get files in rearguard format so I can patch Java & JodaTime.... Need to patch as we need the Fiji change now.
OK, works with "gawk" On 18 July 2018 at 20:08, Lord Buddha <lord.buddha@gmail.com> wrote:
This would be so much easier (for me;) ) if all data forms were published by IANA.
$ awk -v DATAFORM=vanguard -f ziguard.awk africa antarctica asia australasia europe northamerica southamerica etcetera systemv factory backward
*malloc(): memory corruptionAborted (core dumped)*
On Ubuntu 18.04 trying to get files in rearguard format so I can patch Java & JodaTime....
Need to patch as we need the Fiji change now.
Lord Buddha wrote:
OK, works with "gawk"
Yes, the problem here is that Debian (and Ubuntu) use an ancient version of mawk that dumps core too often. They really should upgrade. I can reproduce the problem with mawk 1.3.3 (November 1996), which is the default on Ubuntu 16.04.4 LTS. I cannot reproduce the problem with mawk 1.3.4 20171017. I reported this problem to the Ubuntu maintainers here: https://bugs.launchpad.net/ubuntu/+source/mawk/+bug/1782342 I assume It'll take some time for Ubuntu and/or Debian to push fixes out. In the meantime I installed the attached commentary patch to the tzdb makefile. You can also work around the problem by running: sudo update-alternatives --config awk and choosing gawk instead of mawk.
On 2018-07-18 05:40, Paul Eggert wrote:
OK, works with "gawk" Yes, the problem here is that Debian (and Ubuntu) use an ancient version of mawk that dumps core too often. They really should upgrade. I can reproduce the problem with mawk 1.3.3 (November 1996), which is the default on Ubuntu 16.04.4 LTS. I cannot reproduce the problem with mawk 1.3.4 20171017. I reported this problem to the Ubuntu maintainers here: https://bugs.launchpad.net/ubuntu/+source/mawk/+bug/1782342 I assume It'll take some time for Ubuntu and/or Debian to push fixes out. In the meantime I installed the attached commentary patch to the tzdb makefile. You can also work around the problem by running: sudo update-alternatives --config awk and choosing gawk instead of mawk.
Reminds me of limited AT&T/Sun SunOS/Solaris utilities doing this regularly. Saw this on Debian with a simple AWK script. Anyone tried BSD/BWK OTA (One True) awk? -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
Brian Inglis wrote:
Reminds me of limited AT&T/Sun SunOS/Solaris utilities doing this regularly. Saw this on Debian with a simple AWK script. Anyone tried BSD/BWK OTA (One True) awk?
Solaris 10 /usr/bin/awk (which is the closest to the original Awk implementation that I know of) definitely does not work with tzdb 2018e, as Solaris 10 awk lacks support for many POSIX features, starting with the -v option. tzdb uses only awk features standardized by POSIX since 1992. At this point, a POSIX-1992-or-later awk should be available on every development platform of interest to tzdb, and it shouldn't be much trouble to ask developers to update to a 25-year-old standard or better. On Solaris 10, for example, you can use /usr/bin/nawk or /opt/sfw/bin/gawk (both shipped as part of Solaris 10). On Debian/Ubuntu/etc. you can use gawk.
participants (3)
-
Brian Inglis -
Lord Buddha -
Paul Eggert