[tz] zic throws warning for 2007a

Derick Rethans tz at derickrethans.nl
Wed Mar 1 20:12:37 UTC 2017


Hi,

I've just updated the PHP version of the TZ database, and while 
compiling with the current zic, I see:

warning: "standard input", line 434: time zone abbreviation has too many characters (-004430)

This is because of:
  24 #ifndef ZIC_MAX_ABBR_LEN_WO_WARN
  25 #define ZIC_MAX_ABBR_LEN_WO_WARN    6
  26 #endif /* !defined ZIC_MAX_ABBR_LEN_WO_WARN */

3108         if (cp - string > ZIC_MAX_ABBR_LEN_WO_WARN)
3109           mp = _("time zone abbreviation has too many characters");

That check was introduced in 2012j as per NEWS:

Release 2012j - 2012-11-12 18:34:49 -0800
...

  zic -v now complains about abbreviations that are less than 3
  or more than 6 characters, as per Posix.  Formerly, it checked
  for abbreviations that were more than 3.


cheers,
Derick

-- 
https://derickrethans.nl | https://xdebug.org | https://dram.io
Like Xdebug? Consider a donation: https://xdebug.org/donate.php
twitter: @derickr and @xdebug



More information about the tz mailing list