Index: uppsrc/Core/Core.h =================================================================== --- uppsrc/Core/Core.h (revision 1905) +++ uppsrc/Core/Core.h (working copy) @@ -47,6 +47,11 @@ #include #if defined(PLATFORM_POSIX) + //>>> IonLupascu (tojocky) 2009.01.18: Add define __USE_FILE_OFFSET64. it is need for large files (>2GB) + #ifndef __USE_FILE_OFFSET64 + #define __USE_FILE_OFFSET64 + #endif + //<<< IonLupascu (tojocky) 2009.01.18 #define DIR_SEP '/' #define DIR_SEPS "/" #define PLATFORM_PATH_HAS_CASE 1 Index: uppsrc/Core/Path.cpp =================================================================== --- uppsrc/Core/Path.cpp (revision 1905) +++ uppsrc/Core/Path.cpp (working copy) @@ -585,8 +585,11 @@ struct stat& FindFile::Stat() const { if(!statis) { statis = true; - if(file) - stat(AppendFileName(path, name), &statf); + if(file){ + // >>> IonLupascu(tojocky) 2009.01.18: Add function ToSystemCharset + int l_ret = stat(ToSystemCharset(AppendFileName(path, name)), &statf); + // <<< IonLupascu(tojocky) 2009.01.18 + } } return statf; }