Added GSocket for Unix (only GTK for the moment)
Updated wxSocket to use GSocket API Added a progress bar to client.cpp Added CopyTo to wxMemoryOutputStream to copy the internal buffer to a specified buffer. Various changes/fixes to the high-level protocols FTP/HTTP Various Unicode fixes Removed sckint.* git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -56,7 +56,21 @@ bool wxFFile::Open(const wxChar *filename, const char *mode)
|
||||
{
|
||||
wxASSERT_MSG( !m_fp, _T("should close or detach the old file first") );
|
||||
|
||||
#if wxUSE_UNICODE
|
||||
char *tmp_fname;
|
||||
size_t fname_len;
|
||||
|
||||
fname_len = wxStrlen(filename)+1;
|
||||
tmp_fname = new char[fname_len];
|
||||
wxWX2MB(tmp_fname, filename, fname_len);
|
||||
|
||||
m_fp = fopen(tmp_fname, mode);
|
||||
|
||||
delete tmp_fname;
|
||||
#else
|
||||
m_fp = fopen(filename, mode);
|
||||
#endif
|
||||
|
||||
|
||||
if ( !m_fp )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user