Fix KDiskFreeSp for mount points with UTF8 characters

(cherry picked from commit 56068041d4)
v3.5.13-sru
Slávek Banko 11 years ago
parent 33f00925ff
commit 5ab6b051a5

@ -99,6 +99,7 @@ void KDiskFreeSp::dfDone()
readingDFStdErrOut=true; readingDFStdErrOut=true;
TQTextStream t (dfStringErrOut, IO_ReadOnly); TQTextStream t (dfStringErrOut, IO_ReadOnly);
t.setEncoding(TQTextStream::Locale);
TQString s=t.readLine(); TQString s=t.readLine();
if ( (s.isEmpty()) || ( s.left(10) != TQString::fromLatin1("Filesystem") ) ) if ( (s.isEmpty()) || ( s.left(10) != TQString::fromLatin1("Filesystem") ) )
kdError() << "Error running df command... got [" << s << "]" << endl; kdError() << "Error running df command... got [" << s << "]" << endl;

Loading…
Cancel
Save