···11+From the discussion in http://groups.google.com/group/taskjuggler-users/browse_thread/thread/f65a3efd4dcae2fc/a44c711a9d28ebee?show_docid=a44c711a9d28ebee
22+33+From: Chris Schlaeger <cs@kde.org>
44+Date: Sat, 27 Feb 2010 06:33:35 +0000 (+0100)
55+Subject: Try to fix time zone check for glibc 2.11.
66+X-Git-Url: http://www.taskjuggler.org/cgi-bin/gitweb.cgi?p=taskjuggler.git;a=commitdiff_plain;h=2382ed54f90c3c899badb3f56aaa2b3b5dba361e;hp=c666c5068312fec7db75e17d1c567d94127d1dda
77+88+Try to fix time zone check for glibc 2.11.
99+1010+Reported-by: Lee <pFQh8RQn4fqB@dyweni.com>
1111+---
1212+1313+diff --git a/taskjuggler/Utility.cpp b/taskjuggler/Utility.cpp
1414+index 5e2bf21..9b7fce2 100644
1515+--- a/taskjuggler/Utility.cpp
1616++++ b/taskjuggler/Utility.cpp
1717+@@ -206,16 +206,28 @@ setTimezone(const char* tZone)
1818+1919+ /* To validate the tZone value we call tzset(). It will convert the zone
2020+ * into a three-letter acronym in case the tZone value is good. If not, it
2121+- * will just copy the wrong value to tzname[0] (glibc < 2.5) or fall back
2222+- * to UTC. */
2323++ * will
2424++ * - copy the wrong value to tzname[0] (glibc < 2.5)
2525++ * - or fall back to UTC (glibc >= 2.5 && < 2.11)
2626++ * - copy the part before the '/' to tzname[0] (glibc >= 2.11).
2727++ */
2828+ tzset();
2929++ char* region = new(char[strlen(tZone) + 1]);
3030++ region[0] = 0;
3131++ if (strchr(tZone, '/'))
3232++ {
3333++ strcpy(region, tZone);
3434++ *strchr(region, '/') = 0;
3535++ }
3636+ if (timezone2tz(tZone) == 0 &&
3737+- (strcmp(tzname[0], tZone) == 0 ||
3838++ (strcmp(tzname[0], tZone) == 0 || strcmp(tzname[0], region) == 0 ||
3939+ (strcmp(tZone, "UTC") != 0 && strcmp(tzname[0], "UTC") == 0)))
4040+ {
4141+ UtilityError = QString(i18n("Illegal timezone '%1'")).arg(tZone);
4242++ delete region;
4343+ return false;
4444+ }
4545++ delete region;
4646+4747+ if (!LtHashTab)
4848+ return true;
+1-1
pkgs/top-level/all-packages.nix
···6739673967406740 teamspeak_client = callPackage ../applications/networking/instant-messengers/teamspeak/client.nix { };
6741674167426742- taskJuggler = callPackage ../applications/misc/taskjuggler {
67426742+ taskjuggler = callPackage ../applications/misc/taskjuggler {
67436743 qt = qt3;
6744674467456745 # KDE support is not working yet.