[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fdo-commits
Subject:    [fdo-commits] r4865 - trunk/Providers/SQLite/Src/Provider
From:       svn_fdo () osgeo ! org
Date:       2009-07-30 15:00:17
Message-ID: 20090730150017.15922E000DB () lists ! osgeo ! org
[Download RAW message or body]

Author: traianstanev
Date: 2009-07-30 11:00:16 -0400 (Thu, 30 Jul 2009)
New Revision: 4865

Modified:
   trunk/Providers/SQLite/Src/Provider/SltProvider.cpp
Log:
Replace a call to _access by _waccess on Windows. Otherwise the call wasn't working \
with filenames that contains characters that are not part of the current locale.

Modified: trunk/Providers/SQLite/Src/Provider/SltProvider.cpp
===================================================================
--- trunk/Providers/SQLite/Src/Provider/SltProvider.cpp	2009-07-29 18:09:54 UTC (rev \
                4864)
+++ trunk/Providers/SQLite/Src/Provider/SltProvider.cpp	2009-07-30 15:00:16 UTC (rev \
4865) @@ -266,8 +266,13 @@
     
     std::string file = W2A_SLOW(dsw);
 
-    if (_access(file.c_str(), 0) == -1)
+#ifdef _WIN32
+    if (_waccess(dsw, 0) == -1)
         throw FdoConnectionException::Create(L"File does not exist!");
+#else 
+    if (access(file.c_str(), 0) == -1)
+        throw FdoConnectionException::Create(L"File does not exist!");
+#endif
 
     const wchar_t* sUseMeta = GetProperty(PROP_NAME_FDOMETADATA);
 

_______________________________________________
fdo-commits mailing list
fdo-commits@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic