mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-10-01 17:36:12 +00:00
Improve logic of zic -v abbreviation-length check.
This fixes a bunch of "time zone abbreviation has more than 3 alphabetics" diagnostics for 'make check_public'. * zic.c (newabbr): Check for <3 alphabetics, not for >3. POSIX-2008 requires at least 3 and says that it's not portable to use more than 6, which we check elsewhere.
This commit is contained in:
@@ -2534,8 +2534,8 @@ newabbr(const char *const string)
|
||||
++cp;
|
||||
if (cp - string == 0)
|
||||
mp = _("time zone abbreviation lacks alphabetic at start");
|
||||
if (noise && cp - string > 3)
|
||||
mp = _("time zone abbreviation has more than 3 alphabetics");
|
||||
if (noise && cp - string < 3)
|
||||
mp = _("time zone abbreviation has fewer than 3 alphabetics");
|
||||
if (cp - string > ZIC_MAX_ABBR_LEN_WO_WARN)
|
||||
mp = _("time zone abbreviation has too many alphabetics");
|
||||
if (mp == NULL && (*cp == '+' || *cp == '-')) {
|
||||
|
||||
Reference in New Issue
Block a user