From: Mikko L. <laz...@us...> - 2004-06-12 20:12:12
|
Update of /cvsroot/rtk/rtk/src/core/platform/linux In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30800 Modified Files: File.cpp Log Message: One more UNICODE fix Index: File.cpp =================================================================== RCS file: /cvsroot/rtk/rtk/src/core/platform/linux/File.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** File.cpp 12 Jun 2004 18:37:02 -0000 1.3 --- File.cpp 12 Jun 2004 20:12:03 -0000 1.4 *************** *** 242,247 **** if(close(FD)<0) return false; //remove temporary file ! if (_mode & TEMP) unlink(_filename.c_str()); _handle = INVALID_HANDLE_VALUE; --- 242,258 ---- if(close(FD)<0) return false; + const RCHAR *file = _filename.c_str(); + const char *afile = NULL; + + #ifdef UNICODE + W2A(file, afile); + if(afile==NULL) return false; + #else + afile = file; + #endif + //remove temporary file ! if (_mode & TEMP) ! unlink(afile); _handle = INVALID_HANDLE_VALUE; |