Skip to content

Commit

Permalink
Don't generate invalid POSIX TZ string for Asia/Dhaka timezone.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed Jun 26, 2009
1 parent bb87239 commit 851cb78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2009-06-26 Andreas Schwab <aschwab@redhat.com>

* timezone/zic.c (stringzone): Don't try to generate a POSIX TZ
string when the timezone ends in DST.

* sysdeps/powerpc/powerpc32/____longjmp_chk.S (CHECK_SP): Save lr
before call.
* sysdeps/powerpc/powerpc64/____longjmp_chk.S (CHECK_SP):
Expand Down
2 changes: 1 addition & 1 deletion timezone/zic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1921,7 +1921,7 @@ const int zonecount;
if (stdrp != NULL && stdrp->r_hiyear == 2037)
return;
}
if (stdrp == NULL && zp->z_nrules != 0)
if (stdrp == NULL && (zp->z_nrules != 0 || zp->z_stdoff != 0))
return;
abbrvar = (stdrp == NULL) ? "" : stdrp->r_abbrvar;
doabbr(result, zp->z_format, abbrvar, FALSE, TRUE);
Expand Down

0 comments on commit 851cb78

Please sign in to comment.