[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: KDE/kdelibs/kdecore/tests
From: David Faure <faure () kde ! org>
Date: 2005-07-08 9:00:07
Message-ID: 200507081100.07988.faure () kde ! org
[Download RAW message or body]
More info:
> ktimezonestest: Can't open /etc/timezone
No such file at all.
> grep: /etc/default/init: Permission denied
/etc/default only has "useradd" anyway, no "init" in it.
> zsh: no such file or directory: /bin/head
It's in /usr/bin. But C++ code should probably read the file itself instead
of relying on shell tools.
> ktimezonestest: Can't open /tmp/kde-dfaure/ktimezonestestXdj0Fa.tmp
The code is grepping a just-created KTempFile? What for?
> Local timezone: Africa/Algiers
date shows "CEST" btw, which is correct, given that I live in France ;)
(the result of this bug is that the clock applet is one hour off in "local timezone")
Quick look at the code:
- new KShellProcess() < never deleted.
- if (!f.open(IO_ReadOnly)) < called twice in a row
- $TZ < not set here (Mandriva 10.2)
Strace on "date" says
open("/etc/localtime", O_RDONLY) = 3
file /etc/localtime
/etc/localtime: timezone data
--
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic