summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-11-16 01:41:19 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-11-16 01:41:19 +0100
commit24b097d1d513a512cfc3e9370a2cc58298ba5d91 (patch)
tree6c0ec076174feb35b3684a0958a4d2444f0813b3 /tdecore/tdehw
parent337146de4452295d0f21974a19a54384f54d2e6c (diff)
downloadtdelibs-24b097d1d513a512cfc3e9370a2cc58298ba5d91.tar.gz
tdelibs-24b097d1d513a512cfc3e9370a2cc58298ba5d91.zip
Fix handling path with UTF8 characters in tdehw storage backend
Diffstat (limited to 'tdecore/tdehw')
-rw-r--r--tdecore/tdehw/tdestoragedevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tdecore/tdehw/tdestoragedevice.cpp b/tdecore/tdehw/tdestoragedevice.cpp
index 3824f488e..8dc279f67 100644
--- a/tdecore/tdehw/tdestoragedevice.cpp
+++ b/tdecore/tdehw/tdestoragedevice.cpp
@@ -777,7 +777,7 @@ TQString TDEStorageDevice::determineFileSystemType(TQString path) {
int pos;
struct stat directory_info;
if (path.startsWith("/")) {
- stat(path.ascii(), &directory_info);
+ stat(path.local8Bit(), &directory_info);
prevDev = directory_info.st_dev;
// Walk the directory tree up to the root, checking for any change in st_dev
// If a change is found, the previous value of path is the mount point itself
@@ -790,7 +790,7 @@ TQString TDEStorageDevice::determineFileSystemType(TQString path) {
if (path == "") {
path = "/";
}
- stat(path.ascii(), &directory_info);
+ stat(path.local8Bit(), &directory_info);
if (directory_info.st_dev != prevDev) {
break;
}