#652808 libglib2.0-0: glib fails to detect default timezone

Package:
libglib2.0-0
Source:
glib2.0
Description:
GLib library of C routines
Submitter:
Marcus Comstedt
Date:
2011-12-21 13:54:09 UTC
Severity:
normal
#652808#5
Date:
2011-12-20 15:27:04 UTC
From:
To:
Dear Maintainer,

glib is unable to detect the correct timezone on my Debian system,
which is configured to CET using /etc/localtime ($TZ is not set).

Running the following test program:

#652808#10
Date:
2011-12-21 13:26:17 UTC
From:
To:
tag 652808 unreproducible
thanks

Le mardi 20 décembre 2011 à 16:27 +0100, Marcus Comstedt a écrit :

This program works perfectly fine for me.

#652808#17
Date:
2011-12-21 13:29:23 UTC
From:
To:
Hi Josselin,

Thanks for replying.


Josselin Mouette <joss@debian.org> writes:

Do you have $TZ set?  What is your /etc/localtime set to?  How can
I help you further in reproducing the problem?


  // Marcus

#652808#22
Date:
2011-12-21 13:51:35 UTC
From:
To:
Hi again.

Looking a bit at the source code, it looks like the problem is that
the code expects /etc/localtime to start with "TZif2".  In my case,
it starts with "TZif", without the "2".  The file has not been changed
since the system was installed in 2007.

So I guess the summary of the issue could be changed to
"g_time_zone_new() does not support all versions of /etc/localtime
used by Debian".


  // Marcus