Index: solid/solid/backends/hal/halstorageaccess.cpp =================================================================== --- solid/solid/backends/hal/halstorageaccess.cpp (revision 860627) +++ solid/solid/backends/hal/halstorageaccess.cpp (working copy) @@ -28,6 +28,7 @@ #include #include +#include #include "halfstabhandling.h" @@ -272,6 +273,16 @@ } } + // pass our locale to the ntfs-3g driver so it can translate local characters + if ( m_device->property("volume.fstype").toString()=="ntfs-3g" && halOptions.contains("locale=") ) { + // have to obtain LC_CTYPE as returned by the `locale` command + // check in the same order as `locale` does + char *cType; + if ( (cType = getenv("LC_ALL")) || (cType = getenv("LC_CTYPE")) || (cType = getenv("LANG")) ) { + options << "locale="+QString(cType); + } + } + msg << "" << "" << options; return c.callWithCallback(msg, this,