|
|
#include <QtGui/QWidget> | #include <QtGui/QWidget> |
| |
#include <unistd.h> | #include <unistd.h> |
|
#include <stdlib.h> |
| |
#include "halfstabhandling.h" | #include "halfstabhandling.h" |
| |
|
|
} | } |
} | } |
| |
|
// 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; | msg << "" << "" << options; |
| |
return c.callWithCallback(msg, this, | return c.callWithCallback(msg, this, |