View | Details | Raw Unified
Collapse All | Expand All

(-) solid/solid/backends/hal/halstorageaccess.cpp (+11 lines)
 Lines 28-33    Link Here 
#include <QtGui/QWidget>
#include <QtGui/QWidget>
#include <unistd.h>
#include <unistd.h>
#include <stdlib.h>
#include "halfstabhandling.h"
#include "halfstabhandling.h"
 Lines 272-277    Link Here 
        }
        }
    }
    }
    // 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,