From: Enrico Forestieri Date: Sun, 21 Feb 2010 13:51:06 +0000 (+0000) Subject: This should have gone in r33524. X-Git-Tag: 2.0.0~3986 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=220f0f9f5ba510a9f1e30315b1f44401c1b92484;p=features.git This should have gone in r33524. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33526 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index 652c5316d1..5ba2af2524 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -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 diff --git a/src/support/os_win32.cpp b/src/support/os_win32.cpp index 603adcae63..72612e2b6e 100644 --- a/src/support/os_win32.cpp +++ b/src/support/os_win32.cpp @@ -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);