856
|
1 |
--- kdelibs-3.5.8/kdecore/ktimezones.cpp.orig 2008-02-01 21:21:57.109792234 +0530
|
|
2 |
+++ kdelibs-3.5.8/kdecore/ktimezones.cpp 2008-02-01 22:14:15.976351156 +0530
|
|
3 |
@@ -396,13 +396,13 @@
|
|
4 |
m_zoneinfoDir = "/usr/share/lib/zoneinfo";
|
|
5 |
KTempFile temp;
|
|
6 |
KShellProcess reader;
|
|
7 |
- reader << "/bin/grep" << "-h" << "^Zone" << m_zoneinfoDir << "/src/*" << temp.name() << "|" <<
|
|
8 |
- "/bin/awk" << "'{print \"??\\t+9999+99999\\t\" $2}'";
|
|
9 |
+ reader << "/bin/grep" << "-h" << "^Zone" << "/usr/share/lib/zoneinfo/src/*" << "|" <<
|
|
10 |
+ "/bin/awk" << "'{print \"??\\t+9999+99999\\t\" $2}'" << ">" << temp.name();
|
|
11 |
// Note the use of blocking here...it is a trivial amount of data!
|
|
12 |
temp.close();
|
|
13 |
reader.start(KProcess::Block);
|
|
14 |
f.setName(temp.name());
|
|
15 |
- if (!temp.status() || !f.open(IO_ReadOnly))
|
|
16 |
+ if (temp.status() || !f.open(IO_ReadOnly))
|
|
17 |
{
|
|
18 |
kdDebug() << "Can't open " << f.name() << endl;
|
|
19 |
return *m_zones;
|