pango: Call tzset() before localtime_r()
authorHans-Peter Nilsson <hp@gcc.gnu.org>
Sun, 5 Jul 2009 16:01:38 +0000 (18:01 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 5 Jul 2009 16:01:38 +0000 (18:01 +0200)
commit04e23f2d6a3ca3b10e609e6084e52746c16e208a
tree54a975b6537bb7a7e199d037fac90f4001ced884
parent8937c8955145dc782164f3d9a8da72ab6b8dd885
pango: Call tzset() before localtime_r()

POSIX and your local friendly ctime(3) manual entry says that localtime_r isn't
required to set the state variables that define the current timezone.  Indeed,
glibc (at least 2.9) doesn't do this for subsequent calls.  The effect is that
if the system timezone is changed for a running program between two calls to
gst_clock_overlay_render_time, it won't be noticed.  For glibc, changing the
timezone equals /etc/localtime being modified.

Fixes bug #587676.
ext/pango/gstclockoverlay.c