]> git.lyx.org Git - features.git/commitdiff
This should have gone in r33524.
authorEnrico Forestieri <forenr@lyx.org>
Sun, 21 Feb 2010 13:51:06 +0000 (13:51 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 21 Feb 2010 13:51:06 +0000 (13:51 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33526 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/FileName.cpp
src/support/os_win32.cpp

index 652c5316d149546a2da1155cae7dda1af8cb77ac..5ba2af2524ae62eae10d5ac38a2a5bf110246b03 100644 (file)
@@ -531,7 +531,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
index 603adcae63f0af4496f7cef2b9ccd66a2d2529dc..72612e2b6e576de8b5a3a4f10f5a6c055fa13d2e 100644 (file)
@@ -507,7 +507,7 @@ bool autoOpenFile(string const & filename, auto_open_mode const mode)
 string real_path(string const & path)
 {
        // See http://msdn.microsoft.com/en-us/library/aa366789(VS.85).aspx
-       QString qpath = get_long_path(toqstr(path));
+       QString const qpath = get_long_path(toqstr(path));
        HANDLE hpath = CreateFileW((wchar_t *) qpath.utf16(), GENERIC_READ,
                                FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL);