]> git.lyx.org Git - lyx.git/blobdiff - src/support/FileName.cpp
tiger support on mac snow leopard, include Qt4 frameworks, smart build script with...
[lyx.git] / src / support / FileName.cpp
index 652c5316d149546a2da1155cae7dda1af8cb77ac..96aa4da93feaca12e28cc7a2943ed8b377c9886e 100644 (file)
@@ -277,10 +277,11 @@ string FileName::toFilesystemEncoding() const
 }
 
 
-string FileName::toSafeFilesystemEncoding() const
+string FileName::toSafeFilesystemEncoding(os::file_access how) const
 {
        // This will work on Windows for non ascii file names.
-       QString const safe_path = toqstr(os::safe_internal_path(absFilename()));
+       QString const safe_path =
+               toqstr(os::safe_internal_path(absFilename(), how));
        QByteArray const encoded = QFile::encodeName(safe_path);
        return string(encoded.begin(), encoded.end());
 }
@@ -531,7 +532,7 @@ unsigned long FileName::checksum() const
 
 #else // QT_VERSION
 
-       string const encoded = toFilesystemEncoding();
+       string const encoded = toSafeFilesystemEncoding();
        char const * file = encoded.c_str();
 
  #ifdef SUM_WITH_MMAP