From 24b097d1d513a512cfc3e9370a2cc58298ba5d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 16 Nov 2013 01:41:19 +0100 Subject: Fix handling path with UTF8 characters in tdehw storage backend --- tdecore/tdehw/tdestoragedevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tdecore') 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; } -- cgit v1.2.1