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

2011-12-21 Thread Marcus Comstedt
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 cou

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

2011-12-21 Thread Marcus Comstedt
Hi Josselin, Thanks for replying. Josselin Mouette writes: > This program works perfectly fine for me. Do you have $TZ set? What is your /etc/localtime set to? How can I help you further in reproducing the problem? // Marcus -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@li

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

2011-12-21 Thread Josselin Mouette
tag 652808 unreproducible thanks Le mardi 20 décembre 2011 à 16:27 +0100, Marcus Comstedt a écrit : > #include > #include > #include > > int main() > { > GDateTime * gdt = g_date_time_new_now_local(); > printf("glib: %s\n", g_date_time_format(gdt, "%R %Z")); > > char buf[256]; > tim

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

2011-12-20 Thread Marcus Comstedt
Package: libglib2.0-0 Version: 2.30.2-4 Severity: normal 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: --8<-- #include #include #include int main() {