]> git.pld-linux.org Git - packages/FileZilla.git/blame - wxWidgets3.patch
- first batch of wxWidgets 3.0 fixes
[packages/FileZilla.git] / wxWidgets3.patch
CommitLineData
75d110e3
JR
1--- filezilla-3.7.3/configure.in~ 2013-08-07 19:25:47.000000000 +0200
2+++ filezilla-3.7.3/configure.in 2014-01-18 20:16:07.142026895 +0100
3@@ -111,9 +111,6 @@
4 equivalent variable and wxWidgets version is $MIN_WX_VERSION or above.
5 ])
6 fi
7- if test "$wx_config_major_version" -gt "2" || test "$wx_config_minor_version" -gt "8"; then
8- AC_MSG_ERROR([You need to use wxWidgets 2.8.x to compile this program.])
9- fi
10
11 # --universal=no doesn't work correctly, it still accepts universal builds. Reject it manually here.
12 if echo "$WX_CPPFLAGS" | grep __WXUNIVERSAL__ > /dev/null; then
13diff -ur filezilla-3.7.3/src/engine/ControlSocket.cpp filezilla-3.7.3.wx3/src/engine/ControlSocket.cpp
14--- filezilla-3.7.3/src/engine/ControlSocket.cpp 2013-06-09 05:30:07.000000000 +0200
15+++ filezilla-3.7.3.wx3/src/engine/ControlSocket.cpp 2014-01-18 20:24:16.408690021 +0100
16@@ -120,7 +120,7 @@
17 msg = _("Critical file transfer error after transferring %s in %s");
18 else
19 msg = _("File transfer failed after transferring %s in %s");
20- LogMessage(msgType, msg, size.c_str(), time.c_str());
21+ LogMessage(msgType, msg, (const char *)size.c_str(), (const char *)time.c_str());
22 }
23 else
24 {
25@@ -421,7 +421,7 @@
26
27 if (!defaultPath.IsEmpty())
28 {
29- LogMessage(Debug_Warning, _T("Assuming path is '%s'."), defaultPath.GetPath().c_str());
30+ LogMessage(Debug_Warning, _T("Assuming path is '%s'."), (const char *)defaultPath.GetPath().c_str());
31 m_CurrentPath = defaultPath;
32 return true;
33 }
34@@ -999,7 +999,7 @@
35 {
36 if (error != EAGAIN)
37 {
38- LogMessage(::Error, _("Could not write to socket: %s"), CSocket::GetErrorDescription(error).c_str());
39+ LogMessage(::Error, _("Could not write to socket: %s"), (const char *)CSocket::GetErrorDescription(error).c_str());
40 LogMessage(::Error, _("Disconnected from server"));
41 DoClose();
42 return false;
43@@ -1034,17 +1034,17 @@
44 case CSocketEvent::hostaddress:
45 {
46 const wxString& address = event.GetData();
47- LogMessage(Status, _("Connecting to %s..."), address.c_str());
48+ LogMessage(Status, _("Connecting to %s..."), (const char *)address.c_str());
49 }
50 break;
51 case CSocketEvent::connection_next:
52 if (event.GetError())
53- LogMessage(Status, _("Connection attempt failed with \"%s\", trying next address."), CSocket::GetErrorDescription(event.GetError()).c_str());
54+ LogMessage(Status, _("Connection attempt failed with \"%s\", trying next address."), (const char *)CSocket::GetErrorDescription(event.GetError()).c_str());
55 break;
56 case CSocketEvent::connection:
57 if (event.GetError())
58 {
59- LogMessage(Status, _("Connection attempt failed with \"%s\"."), CSocket::GetErrorDescription(event.GetError()).c_str());
60+ LogMessage(Status, _("Connection attempt failed with \"%s\"."), (const char *)CSocket::GetErrorDescription(event.GetError()).c_str());
61 OnClose(event.GetError());
62 }
63 else
64@@ -1097,7 +1097,7 @@
65 {
66 if (error != EAGAIN)
67 {
68- LogMessage(::Error, _("Could not write to socket: %s"), CSocket::GetErrorDescription(error).c_str());
69+ LogMessage(::Error, _("Could not write to socket: %s"), (const char *)CSocket::GetErrorDescription(error).c_str());
70 if (GetCurrentCommandId() != cmd_connect)
71 LogMessage(::Error, _("Disconnected from server"));
72 DoClose();
73@@ -1134,7 +1134,7 @@
74 if (!error)
75 LogMessage(::Error, _("Connection closed by server"));
76 else
77- LogMessage(::Error, _("Disconnected from server: %s"), CSocket::GetErrorDescription(error).c_str());
78+ LogMessage(::Error, _("Disconnected from server: %s"), (const char *)CSocket::GetErrorDescription(error).c_str());
79 }
80 DoClose();
81 }
82@@ -1145,7 +1145,7 @@
83
84 if (server.GetEncodingType() == ENCODING_CUSTOM)
85 {
86- LogMessage(Debug_Info, _T("Using custom encoding: %s"), server.GetCustomEncoding().c_str());
87+ LogMessage(Debug_Info, _T("Using custom encoding: %s"), (const char *)server.GetCustomEncoding().c_str());
88 m_pCSConv = new wxCSConv(server.GetCustomEncoding());
89 }
90
91@@ -1166,7 +1166,7 @@
92 const int proxy_type = m_pEngine->GetOptions()->GetOptionVal(OPTION_PROXY_TYPE);
93 if (proxy_type > CProxySocket::unknown && proxy_type < CProxySocket::proxytype_count && !m_pCurrentServer->GetBypassProxy())
94 {
95- LogMessage(::Status, _("Connecting to %s through proxy"), m_pCurrentServer->FormatHost().c_str());
96+ LogMessage(::Status, _("Connecting to %s through proxy"), (const char *)m_pCurrentServer->FormatHost().c_str());
97
98 host = m_pEngine->GetOptions()->GetOption(OPTION_PROXY_HOST);
99 port = m_pEngine->GetOptions()->GetOptionVal(OPTION_PROXY_PORT);
100@@ -1181,7 +1181,7 @@
101
102 if (res != EINPROGRESS)
103 {
104- LogMessage(::Error, _("Could not start proxy handshake: %s"), CSocket::GetErrorDescription(res).c_str());
105+ LogMessage(::Error, _("Could not start proxy handshake: %s"), (const char *)CSocket::GetErrorDescription(res).c_str());
106 DoClose();
107 return FZ_REPLY_ERROR;
108 }
109@@ -1201,14 +1201,14 @@
110 }
111 }
112 if (!IsIpAddress(host))
113- LogMessage(Status, _("Resolving address of %s"), host.c_str());
114+ LogMessage(Status, _("Resolving address of %s"), (const char *)host.c_str());
115
116 int res = m_pSocket->Connect(host, port);
117
118 // Treat success same as EINPROGRESS, we wait for connect notification in any case
119 if (res && res != EINPROGRESS)
120 {
121- LogMessage(::Error, _("Could not connect to server: %s"), CSocket::GetErrorDescription(res).c_str());
122+ LogMessage(::Error, _("Could not connect to server: %s"), (const char *)CSocket::GetErrorDescription(res).c_str());
123 DoClose();
124 return FZ_REPLY_ERROR;
125 }
126@@ -1273,11 +1273,11 @@
127 if (pData->download)
128 {
129 wxString filename = pData->remotePath.FormatFilename(pData->remoteFile);
130- LogMessage(Status, _("Skipping download of %s"), filename.c_str());
131+ LogMessage(Status, _("Skipping download of %s"), (const char *)filename.c_str());
132 }
133 else
134 {
135- LogMessage(Status, _("Skipping upload of %s"), pData->localFile.c_str());
136+ LogMessage(Status, _("Skipping upload of %s"), (const char *)pData->localFile.c_str());
137 }
138 ResetOperation(FZ_REPLY_OK);
139 }
140@@ -1292,11 +1292,11 @@
141 if (pData->download)
142 {
143 wxString filename = pData->remotePath.FormatFilename(pData->remoteFile);
144- LogMessage(Status, _("Skipping download of %s"), filename.c_str());
145+ LogMessage(Status, _("Skipping download of %s"), (const char *)filename.c_str());
146 }
147 else
148 {
149- LogMessage(Status, _("Skipping upload of %s"), pData->localFile.c_str());
150+ LogMessage(Status, _("Skipping upload of %s"), (const char *)pData->localFile.c_str());
151 }
152 ResetOperation(FZ_REPLY_OK);
153 }
154@@ -1317,11 +1317,11 @@
155 if (pData->download)
156 {
157 wxString filename = pData->remotePath.FormatFilename(pData->remoteFile);
158- LogMessage(Status, _("Skipping download of %s"), filename.c_str());
159+ LogMessage(Status, _("Skipping download of %s"), (const char *)filename.c_str());
160 }
161 else
162 {
163- LogMessage(Status, _("Skipping upload of %s"), pData->localFile.c_str());
164+ LogMessage(Status, _("Skipping upload of %s"), (const char *)pData->localFile.c_str());
165 }
166 ResetOperation(FZ_REPLY_OK);
167 }
168@@ -1383,11 +1383,11 @@
169 if (pData->download)
170 {
171 wxString filename = pData->remotePath.FormatFilename(pData->remoteFile);
172- LogMessage(Status, _("Skipping download of %s"), filename.c_str());
173+ LogMessage(Status, _("Skipping download of %s"), (const char *)filename.c_str());
174 }
175 else
176 {
177- LogMessage(Status, _("Skipping upload of %s"), pData->localFile.c_str());
178+ LogMessage(Status, _("Skipping upload of %s"), (const char *)pData->localFile.c_str());
179 }
180 ResetOperation(FZ_REPLY_OK);
181 break;
182@@ -1485,4 +1485,4 @@
183 int CControlSocket::Chmod(const CChmodCommand&)
184 {
185 return FZ_REPLY_NOTSUPPORTED;
186-}
187\ No newline at end of file
188+}
189diff -ur filezilla-3.7.3/src/engine/directorylistingparser.cpp filezilla-3.7.3.wx3/src/engine/directorylistingparser.cpp
190--- filezilla-3.7.3/src/engine/directorylistingparser.cpp 2013-04-05 05:30:06.000000000 +0200
191+++ filezilla-3.7.3.wx3/src/engine/directorylistingparser.cpp 2014-01-18 20:40:39.912016233 +0100
192@@ -1,6 +1,7 @@
193 #include <filezilla.h>
194 #include "directorylistingparser.h"
195 #include "ControlSocket.h"
196+#include "logging_private.h"
197
198 #ifdef _DEBUG
199 #define new DEBUG_NEW
200diff -ur filezilla-3.7.3/src/engine/ftpcontrolsocket.cpp filezilla-3.7.3.wx3/src/engine/ftpcontrolsocket.cpp
201--- filezilla-3.7.3/src/engine/ftpcontrolsocket.cpp 2013-06-09 05:30:07.000000000 +0200
202+++ filezilla-3.7.3.wx3/src/engine/ftpcontrolsocket.cpp 2014-01-18 20:44:54.772014389 +0100
203@@ -228,7 +228,7 @@
204 {
205 if (error != EAGAIN)
206 {
207- LogMessage(::Error, _("Could not read from socket: %s"), CSocket::GetErrorDescription(error).c_str());
208+ LogMessage(::Error, _("Could not read from socket: %s"), (const char *)CSocket::GetErrorDescription(error).c_str());
209 if (GetCurrentCommandId() != cmd_connect)
210 LogMessage(::Error, _("Disconnected from server"));
211 DoClose();
212@@ -541,7 +541,7 @@
213 pData->loginSequence.push_back(cmd);
214 }
215 // User@host
216- t_loginCommand cmd = {false, false, user, wxString::Format(_T("USER %s@%s"), server.GetUser().c_str(), server.FormatHost().c_str())};
217+ t_loginCommand cmd = {false, false, user, wxString::Format(_T("USER %s@%s"), (const char *)server.GetUser().c_str(), (const char *)server.FormatHost().c_str())};
218 pData->loginSequence.push_back(cmd);
219
220 // Password
221@@ -2063,7 +2063,7 @@
222 case cwd_pwd_cwd:
223 if (code != 2 && code != 3)
224 {
225- LogMessage(Debug_Warning, _T("PWD failed, assuming path is '%s'."), pData->path.GetPath().c_str());
226+ LogMessage(Debug_Warning, _T("PWD failed, assuming path is '%s'."), (const char *)pData->path.GetPath().c_str());
227 m_CurrentPath = pData->path;
228
229 if (pData->target.IsEmpty())
230@@ -2131,7 +2131,7 @@
231 {
232 if (!assumedPath.IsEmpty())
233 {
234- LogMessage(Debug_Warning, _T("PWD failed, assuming path is '%s'."), assumedPath.GetPath().c_str());
235+ LogMessage(Debug_Warning, _T("PWD failed, assuming path is '%s'."), (const char *)assumedPath.GetPath().c_str());
236 m_CurrentPath = assumedPath;
237
238 if (pData->target.IsEmpty())
239@@ -2253,11 +2253,11 @@
240 if (download)
241 {
242 wxString filename = remotePath.FormatFilename(remoteFile);
243- LogMessage(Status, _("Starting download of %s"), filename.c_str());
244+ LogMessage(Status, _("Starting download of %s"), (const char *)filename.c_str());
245 }
246 else
247 {
248- LogMessage(Status, _("Starting upload of %s"), localFile.c_str());
249+ LogMessage(Status, _("Starting upload of %s"), (const char *)localFile.c_str());
250 }
251 if (m_pCurOpData)
252 {
253@@ -2645,7 +2645,7 @@
254 if (!pFile->Open(pData->localFile, wxFile::write_append))
255 {
256 delete pFile;
257- LogMessage(::Error, _("Failed to open \"%s\" for appending/writing"), pData->localFile.c_str());
258+ LogMessage(::Error, _("Failed to open \"%s\" for appending/writing"), (const char *)pData->localFile.c_str());
259 ResetOperation(FZ_REPLY_ERROR);
260 return FZ_REPLY_ERROR;
261 }
262@@ -2686,7 +2686,7 @@
263 if (!pFile->Open(pData->localFile, wxFile::write))
264 {
265 delete pFile;
266- LogMessage(::Error, _("Failed to open \"%s\" for writing"), pData->localFile.c_str());
267+ LogMessage(::Error, _("Failed to open \"%s\" for writing"), (const char *)pData->localFile.c_str());
268 ResetOperation(FZ_REPLY_ERROR);
269 return FZ_REPLY_ERROR;
270 }
271@@ -2707,7 +2707,7 @@
272 if (!pFile->Open(pData->localFile, wxFile::read))
273 {
274 delete pFile;
275- LogMessage(::Error, _("Failed to open \"%s\" for reading"), pData->localFile.c_str());
276+ LogMessage(::Error, _("Failed to open \"%s\" for reading"), (const char *)pData->localFile.c_str());
277 ResetOperation(FZ_REPLY_ERROR);
278 return FZ_REPLY_ERROR;
279 }
280@@ -2723,7 +2723,7 @@
281 if (pFile->Seek(startOffset, wxFromStart) == wxInvalidOffset)
282 {
283 delete pFile;
284- LogMessage(::Error, _("Could not seek to offset %s within file"), wxLongLong(startOffset).ToString().c_str());
285+ LogMessage(::Error, _("Could not seek to offset %s within file"), (const char *)wxLongLong(startOffset).ToString().c_str());
286 ResetOperation(FZ_REPLY_ERROR);
287 return FZ_REPLY_ERROR;
288 }
289@@ -3125,7 +3125,7 @@
290 wxString filename = pData->path.FormatFilename(file, pData->omitPath);
291 if (filename == _T(""))
292 {
293- LogMessage(::Error, _("Filename cannot be constructed for directory %s and filename %s"), pData->path.GetPath().c_str(), file.c_str());
294+ LogMessage(::Error, _("Filename cannot be constructed for directory %s and filename %s"), (const char *)pData->path.GetPath().c_str(), (const char *)file.c_str());
295 ResetOperation(FZ_REPLY_ERROR);
296 return FZ_REPLY_ERROR;
297 }
298@@ -3213,7 +3213,7 @@
299
300 if (!pData->fullPath.AddSegment(subDir))
301 {
302- LogMessage(::Error, _("Path cannot be constructed for directory %s and subdir %s"), path.GetPath().c_str(), subDir.c_str());
303+ LogMessage(::Error, _("Path cannot be constructed for directory %s and subdir %s"), (const char *)path.GetPath().c_str(), (const char *)subDir.c_str());
304 ResetOperation(FZ_REPLY_ERROR);
305 return FZ_REPLY_ERROR;
306 }
307@@ -3328,7 +3328,7 @@
308 */
309
310 if (!m_pCurOpData)
311- LogMessage(Status, _("Creating directory '%s'..."), path.GetPath().c_str());
312+ LogMessage(Status, _("Creating directory '%s'..."), (const char *)path.GetPath().c_str());
313
314 CMkdirOpData *pData = new CMkdirOpData;
315 pData->path = path;
316@@ -3559,7 +3559,7 @@
317 return FZ_REPLY_ERROR;
318 }
319
320- LogMessage(Status, _("Renaming '%s' to '%s'"), command.GetFromPath().FormatFilename(command.GetFromFile()).c_str(), command.GetToPath().FormatFilename(command.GetToFile()).c_str());
321+ LogMessage(Status, _("Renaming '%s' to '%s'"), (const char *)command.GetFromPath().FormatFilename(command.GetFromFile()).c_str(), (const char *)command.GetToPath().FormatFilename(command.GetToFile()).c_str());
322
323 CFtpRenameOpData *pData = new CFtpRenameOpData(command);
324 pData->opState = rename_rnfrom;
325@@ -3711,7 +3711,7 @@
326 return FZ_REPLY_ERROR;
327 }
328
329- LogMessage(Status, _("Set permissions of '%s' to '%s'"), command.GetPath().FormatFilename(command.GetFile()).c_str(), command.GetPermission().c_str());
330+ LogMessage(Status, _("Set permissions of '%s' to '%s'"), (const char *)command.GetPath().FormatFilename(command.GetFile()).c_str(), (const char *)command.GetPermission().c_str());
331
332 CFtpChmodOpData *pData = new CFtpChmodOpData(command);
333 pData->opState = chmod_chmod;
334@@ -3881,13 +3881,13 @@
335 if (m_pEngine->GetOptions()->GetOptionVal(OPTION_PASVREPLYFALLBACKMODE) != 1 || pData->bTriedActive)
336 {
337 LogMessage(Status, _("Server sent passive reply with unroutable address. Using server address instead."));
338- LogMessage(Debug_Info, _T(" Reply: %s, peer: %s"), pData->host.c_str(), peerIP.c_str());
339+ LogMessage(Debug_Info, _T(" Reply: %s, peer: %s"), (const char *)pData->host.c_str(), (const char *)peerIP.c_str());
340 pData->host = peerIP;
341 }
342 else
343 {
344 LogMessage(Status, _("Server sent passive reply with unroutable address. Passive mode failed."));
345- LogMessage(Debug_Info, _T(" Reply: %s, peer: %s"), pData->host.c_str(), peerIP.c_str());
346+ LogMessage(Debug_Info, _T(" Reply: %s, peer: %s"), (const char *)pData->host.c_str(), (const char *)peerIP.c_str());
347 return false;
348 }
349 }
350@@ -3944,7 +3944,7 @@
351
352 wxString resolverAddress = m_pEngine->GetOptions()->GetOption(OPTION_EXTERNALIPRESOLVER);
353
354- LogMessage(::Debug_Info, _("Retrieving external IP address from %s"), resolverAddress.c_str());
355+ LogMessage(::Debug_Info, _("Retrieving external IP address from %s"), (const char *)resolverAddress.c_str());
356
357 m_pIPResolver = new CExternalIPResolver(this);
358 m_pIPResolver->GetExternalIP(resolverAddress, CSocket::ipv4);
359@@ -4445,7 +4445,7 @@
360 return FZ_REPLY_ERROR;
361 }
362
363- LogMessage(Status, _("Using proxy %s"), m_pEngine->GetOptions()->GetOption(OPTION_FTP_PROXY_HOST).c_str());
364+ LogMessage(Status, _("Using proxy %s"), (const char *)m_pEngine->GetOptions()->GetOption(OPTION_FTP_PROXY_HOST).c_str());
365 }
366 else
367 {
368diff -ur filezilla-3.7.3/src/engine/httpcontrolsocket.cpp filezilla-3.7.3.wx3/src/engine/httpcontrolsocket.cpp
369--- filezilla-3.7.3/src/engine/httpcontrolsocket.cpp 2012-11-02 05:30:06.000000000 +0100
370+++ filezilla-3.7.3.wx3/src/engine/httpcontrolsocket.cpp 2014-01-18 20:47:54.298679755 +0100
371@@ -355,7 +355,7 @@
372 {
373 LogMessage(Debug_Verbose, _T("CHttpControlSocket::FileTransfer()"));
374
375- LogMessage(Status, _("Downloading %s"), remotePath.FormatFilename(remoteFile).c_str());
376+ LogMessage(Status, _("Downloading %s"), (const char *)remotePath.FormatFilename(remoteFile).c_str());
377
378 if (!download)
379 {
380@@ -388,7 +388,7 @@
381
382 if (!pData->pFile->Open(pData->localFile, wxFile::write))
383 {
384- LogMessage(::Error, _("Failed to open \"%s\" for writing"), pData->localFile.c_str());
385+ LogMessage(::Error, _("Failed to open \"%s\" for writing"), (const char *)pData->localFile.c_str());
386 ResetOperation(FZ_REPLY_ERROR);
387 return FZ_REPLY_ERROR;
388 }
389@@ -445,7 +445,7 @@
390
391 if (!pData->pFile->Open(pData->localFile, wxFile::write))
392 {
393- LogMessage(::Error, _("Failed to open \"%s\" for writing"), pData->localFile.c_str());
394+ LogMessage(::Error, _("Failed to open \"%s\" for writing"), (const char *)pData->localFile.c_str());
395 ResetOperation(FZ_REPLY_ERROR);
396 return FZ_REPLY_ERROR;
397 }
398@@ -471,10 +471,10 @@
399 hostWithPort = pData->m_newHostWithPort;
400 }
401
402- wxString action = wxString::Format(_T("GET %s HTTP/1.1"), location.c_str());
403+ wxString action = wxString::Format(_T("GET %s HTTP/1.1"), (const char *)location.c_str());
404 LogMessageRaw(Command, action);
405
406- wxString command = wxString::Format(_T("%s\r\nHost: %s\r\nUser-Agent: %s\r\nConnection: close\r\n\r\n"), action.c_str(), hostWithPort.c_str(), wxString(PACKAGE_STRING, wxConvLocal).c_str());
407+ wxString command = wxString::Format(_T("%s\r\nHost: %s\r\nUser-Agent: %s\r\nConnection: close\r\n\r\n"), (const char *)action.c_str(), (const char *)hostWithPort.c_str(), wxString(PACKAGE_STRING, wxConvLocal).c_str());
408
409 const wxWX2MBbuf str = command.mb_str();
410 if (!Send(str, strlen(str)))
411@@ -494,7 +494,7 @@
412 pData->tls = tls;
413
414 if (!IsIpAddress(host))
415- LogMessage(Status, _("Resolving address of %s"), host.c_str());
416+ LogMessage(Status, _("Resolving address of %s"), (const char *)host.c_str());
417
418 pData->host = host;
419 return DoInternalConnect();
420@@ -563,7 +563,7 @@
421
422 if (pData->pFile->Write(p, len) != len)
423 {
424- LogMessage(::Error, _("Failed to write to file %s"), pData->localFile.c_str());
425+ LogMessage(::Error, _("Failed to write to file %s"), (const char *)pData->localFile.c_str());
426 ResetOperation(FZ_REPLY_ERROR);
427 return FZ_REPLY_ERROR;
428 }
429@@ -716,7 +716,7 @@
430 ResetOperation(FZ_REPLY_ERROR);
431 return FZ_REPLY_ERROR;
432 }
433- pData->m_newHostWithPort = wxString::Format(_T("%s:%d"), host.c_str(), (int)port);
434+ pData->m_newHostWithPort = wxString::Format(_T("%s:%d"), (const char *)host.c_str(), (int)port);
435
436 // International domain names
437 host = ConvertDomainName(host);
438@@ -769,7 +769,7 @@
439 {
440 if (*p < '0' || *p > '9')
441 {
442- LogMessage(::Error, _("Malformed header: %s"), _("Invalid Content-Length"));
443+ LogMessage(::Error, _("Malformed header: %s"), (const char *)_("Invalid Content-Length").c_str());
444 ResetOperation(FZ_REPLY_ERROR);
445 return FZ_REPLY_ERROR;
446 }
447@@ -824,7 +824,7 @@
448 {
449 if (p[i + 1] != '\n')
450 {
451- LogMessage(::Error, _("Malformed chunk data: %s"), _("Wrong line endings"));
452+ LogMessage(::Error, _("Malformed chunk data: %s"), (const char *)_("Wrong line endings").c_str());
453 ResetOperation(FZ_REPLY_ERROR);
454 return FZ_REPLY_ERROR;
455 }
456@@ -836,7 +836,7 @@
457 if (len == m_recvBufferLen)
458 {
459 // We don't support lines larger than 4096
460- LogMessage(::Error, _("Malformed chunk data: %s"), _("Line length exceeded"));
461+ LogMessage(::Error, _("Malformed chunk data: %s"), (const char *)_("Line length exceeded").c_str());
462 ResetOperation(FZ_REPLY_ERROR);
463 return FZ_REPLY_ERROR;
464 }
465@@ -851,7 +851,7 @@
466 {
467 // The chunk data has to end with CRLF. If i is nonzero,
468 // it didn't end with just CRLF.
469- LogMessage(::Error, _("Malformed chunk data: %s"), _("Chunk data improperly terminated"));
470+ LogMessage(::Error, _("Malformed chunk data: %s"), (const char *)_("Chunk data improperly terminated").c_str());
471 ResetOperation(FZ_REPLY_ERROR);
472 return FZ_REPLY_ERROR;
473 }
474@@ -893,7 +893,7 @@
475 else
476 {
477 // Invalid size
478- LogMessage(::Error, _("Malformed chunk data: %s"), _("Invalid chunk size"));
479+ LogMessage(::Error, _("Malformed chunk data: %s"), (const char *)_("Invalid chunk size").c_str());
480 ResetOperation(FZ_REPLY_ERROR);
481 return FZ_REPLY_ERROR;
482 }
483@@ -950,7 +950,7 @@
484
485 if (error)
486 {
487- LogMessage(::Error, _("Disconnected from server: %s"), CSocket::GetErrorDescription(error).c_str());
488+ LogMessage(::Error, _("Disconnected from server: %s"), (const char *)CSocket::GetErrorDescription(error).c_str());
489 ResetOperation(FZ_REPLY_ERROR | FZ_REPLY_DISCONNECTED);
490 return;
491 }
492diff -ur filezilla-3.7.3/src/engine/local_path.cpp filezilla-3.7.3.wx3/src/engine/local_path.cpp
493--- filezilla-3.7.3/src/engine/local_path.cpp 2011-05-02 05:30:19.000000000 +0200
494+++ filezilla-3.7.3.wx3/src/engine/local_path.cpp 2014-01-18 21:22:20.448664798 +0100
495@@ -1,6 +1,7 @@
496 #include <filezilla.h>
497 #include "local_path.h"
498 #include "string_coalescer.h"
499+#include "logging_private.h"
500 #ifndef __WXMSW__
501 #include <errno.h>
502 #endif
503@@ -120,7 +121,8 @@
504 return false;
505 }
506
507- wxChar* start = m_path.GetWriteBuf(path.Len() + 2);
508+ wxStringBuffer strbuf(m_path, path.Len() + 2);
509+ wxChar* start = strbuf;
510 wxChar* out = start;
511
512 *out++ = '/';
513@@ -211,7 +213,7 @@
514
515 *out = 0;
516
517- m_path.UngetWriteBuf( out - start );
518+ strbuf.~wxStringBuffer();
519
520 ::Coalesce(m_path);
521
522@@ -495,20 +497,20 @@
523 return true;
524
525 if (error)
526- error->Printf(_("'%s' is not a directory."), path.c_str());
527+ error->Printf(_("'%s' is not a directory."), (const char *)path.c_str());
528
529 return false;
530 }
531 else if (result == ENOTDIR)
532 {
533 if (error)
534- error->Printf(_("'%s' is not a directory."), path.c_str());
535+ error->Printf(_("'%s' is not a directory."), (const char *)path.c_str());
536 return false;
537 }
538 else
539 {
540 if (error)
541- error->Printf(_("'%s' does not exist or cannot be accessed."), path.c_str());
542+ error->Printf(_("'%s' does not exist or cannot be accessed."), (const char *)path.c_str());
543 return false;
544 }
545 #endif
546@@ -599,4 +601,4 @@
547 void CLocalPath::Coalesce()
548 {
549 ::Coalesce(m_path);
550-}
551\ No newline at end of file
552+}
553diff -ur filezilla-3.7.3/src/engine/logging_private.h filezilla-3.7.3.wx3/src/engine/logging_private.h
554--- filezilla-3.7.3/src/engine/logging_private.h 2008-12-14 04:00:47.000000000 +0100
555+++ filezilla-3.7.3.wx3/src/engine/logging_private.h 2014-01-18 20:42:33.885348742 +0100
556@@ -1,6 +1,9 @@
557 #ifndef __LOGGING_PRIVATE_H__
558 #define __LOGGING_PRIVATE_H__
559
560+#include <wx/intl.h>
561+#include <wx/string.h>
562+
563 class CLogging
564 {
565 public:
566diff -ur filezilla-3.7.3/src/engine/misc.cpp filezilla-3.7.3.wx3/src/engine/misc.cpp
567--- filezilla-3.7.3/src/engine/misc.cpp 2012-10-24 05:30:07.000000000 +0200
568+++ filezilla-3.7.3.wx3/src/engine/misc.cpp 2014-01-18 21:07:20.222004649 +0100
569@@ -363,12 +363,7 @@
570
571 void MakeLowerAscii(wxString& str)
572 {
573- for (size_t i = 0; i < str.Len(); i++)
574- {
575- wxChar& c = str[i];
576- if (c >= 'A' && c <= 'Z')
577- c += 32;
578- }
579+ str.MakeLower();
580 }
581
582 wxString GetDependencyVersion(dependency::type d)
583diff -ur filezilla-3.7.3/src/engine/proxy.cpp filezilla-3.7.3.wx3/src/engine/proxy.cpp
584--- filezilla-3.7.3/src/engine/proxy.cpp 2012-11-02 05:30:06.000000000 +0100
585+++ filezilla-3.7.3.wx3/src/engine/proxy.cpp 2014-01-18 21:08:17.078670903 +0100
586@@ -169,11 +169,11 @@
587 case CSocketEvent::hostaddress:
588 {
589 const wxString& address = event.GetData();
590- m_pOwner->LogMessage(Status, _("Connecting to %s..."), address.c_str());
591+ m_pOwner->LogMessage(Status, _("Connecting to %s..."), (const char *)address.c_str());
592 }
593 case CSocketEvent::connection_next:
594 if (event.GetError())
595- m_pOwner->LogMessage(Status, _("Connection attempt failed with \"%s\", trying next address."), CSocket::GetErrorDescription(event.GetError()).c_str());
596+ m_pOwner->LogMessage(Status, _("Connection attempt failed with \"%s\", trying next address."), (const char *)CSocket::GetErrorDescription(event.GetError()).c_str());
597 break;
598 case CSocketEvent::connection:
599 if (event.GetError())
600@@ -306,7 +306,7 @@
601 wxASSERT(end);
602 *end = 0;
603 wxString reply(m_pRecvBuffer, wxConvUTF8);
604- m_pOwner->LogMessage(Response, _("Proxy reply: %s"), reply.c_str());
605+ m_pOwner->LogMessage(Response, _("Proxy reply: %s"), (const char *)reply.c_str());
606
607 if (reply.Left(10) != _T("HTTP/1.1 2") && reply.Left(10) != _T("HTTP/1.0 2"))
608 {
609@@ -455,7 +455,7 @@
610 break;
611 }
612
613- m_pOwner->LogMessage(Debug_Warning, _("Proxy request failed: %s"), error.c_str());
614+ m_pOwner->LogMessage(Debug_Warning, _("Proxy request failed: %s"), (const char *)error.c_str());
615 m_proxyState = noconn;
616 CSocketEvent *evt = new CSocketEvent(m_pEvtHandler, this, CSocketEvent::close, ECONNABORTED);
617 CSocketEventDispatcher::Get().SendEvent(evt);
618diff -ur filezilla-3.7.3/src/engine/server.cpp filezilla-3.7.3.wx3/src/engine/server.cpp
619--- filezilla-3.7.3/src/engine/server.cpp 2013-01-14 05:30:09.000000000 +0100
620+++ filezilla-3.7.3.wx3/src/engine/server.cpp 2014-01-18 21:11:06.592003009 +0100
621@@ -1,4 +1,5 @@
622 #include <filezilla.h>
623+#include "logging_private.h"
624
625 struct t_protocolInfo
626 {
627@@ -12,13 +13,13 @@
628 };
629
630 static const t_protocolInfo protocolInfos[] = {
631- { FTP, _T("ftp"), false, 21, true, wxTRANSLATE("FTP - File Transfer Protocol with optional encryption"), true },
632+ { FTP, _T("ftp"), false, 21, true, (const wxChar*)wxTRANSLATE("FTP - File Transfer Protocol with optional encryption"), true },
633 { SFTP, _T("sftp"), true, 22, false, _T("SFTP - SSH File Transfer Protocol"), false },
634 { HTTP, _T("http"), true, 80, false, _T("HTTP - Hypertext Transfer Protocol"), true },
635- { HTTPS, _T("https"), true, 443, true, wxTRANSLATE("HTTPS - HTTP over TLS"), true },
636- { FTPS, _T("ftps"), true, 990, true, wxTRANSLATE("FTPS - FTP over implicit TLS/SSL"), true },
637- { FTPES, _T("ftpes"), true, 21, true, wxTRANSLATE("FTPES - FTP over explicit TLS/SSL"), true },
638- { INSECURE_FTP, _T("ftp"), false, 21, true, wxTRANSLATE("FTP - Insecure File Transfer Protocol"), true },
639+ { HTTPS, _T("https"), true, 443, true, (const wxChar*)wxTRANSLATE("HTTPS - HTTP over TLS"), true },
640+ { FTPS, _T("ftps"), true, 990, true, (const wxChar*)wxTRANSLATE("FTPS - FTP over implicit TLS/SSL"), true },
641+ { FTPES, _T("ftpes"), true, 21, true, (const wxChar*)wxTRANSLATE("FTPES - FTP over explicit TLS/SSL"), true },
642+ { INSECURE_FTP, _T("ftp"), false, 21, true, (const wxChar*)wxTRANSLATE("FTP - Insecure File Transfer Protocol"), true },
643 { UNKNOWN, _T(""), false, 21, false, _T("") }
644 };
645
646diff -ur filezilla-3.7.3/src/engine/serverpath.cpp filezilla-3.7.3.wx3/src/engine/serverpath.cpp
647--- filezilla-3.7.3/src/engine/serverpath.cpp 2013-04-05 05:30:06.000000000 +0200
648+++ filezilla-3.7.3.wx3/src/engine/serverpath.cpp 2014-01-18 21:21:17.041998590 +0100
649@@ -276,7 +276,8 @@
650 len += iter->Length() + 2 + INTLENGTH;
651
652 wxString safepath;
653- wxChar* start = safepath.GetWriteBuf(len);
654+ wxStringBuffer strbuf(safepath, len);
655+ wxChar* start = strbuf;
656 wxChar* t = start;
657
658 t = fast_sprint_number(t, m_type);
659@@ -300,7 +301,7 @@
660 }
661 *t = 0;
662
663- safepath.UngetWriteBuf( t - start );
664+ strbuf.~wxStringBuffer();
665 safepath.Shrink();
666
667 return safepath;
668diff -ur filezilla-3.7.3/src/engine/sftpcontrolsocket.cpp filezilla-3.7.3.wx3/src/engine/sftpcontrolsocket.cpp
669--- filezilla-3.7.3/src/engine/sftpcontrolsocket.cpp 2013-06-09 05:30:07.000000000 +0200
670+++ filezilla-3.7.3.wx3/src/engine/sftpcontrolsocket.cpp 2014-01-18 21:25:01.475330299 +0100
671@@ -391,7 +391,7 @@
672
673 int CSftpControlSocket::Connect(const CServer &server)
674 {
675- LogMessage(Status, _("Connecting to %s..."), server.FormatHost().c_str());
676+ LogMessage(Status, _("Connecting to %s..."), (const char *)server.FormatHost().c_str());
677 SetWait(true);
678
679 m_sftpEncryptionDetails = CSftpEncryptionNotification();
680@@ -399,7 +399,7 @@
681 delete m_pCSConv;
682 if (server.GetEncodingType() == ENCODING_CUSTOM)
683 {
684- LogMessage(Debug_Info, _T("Using custom encoding: %s"), server.GetCustomEncoding().c_str());
685+ LogMessage(Debug_Info, _T("Using custom encoding: %s"), (const char *)server.GetCustomEncoding().c_str());
686 m_pCSConv = new wxCSConv(server.GetCustomEncoding());
687 m_useUTF8 = false;
688 }
689@@ -431,7 +431,7 @@
690 wxString executable = m_pEngine->GetOptions()->GetOption(OPTION_FZSFTP_EXECUTABLE);
691 if (executable == _T(""))
692 executable = _T("fzsftp");
693- LogMessage(Debug_Verbose, _T("Going to execute %s"), executable.c_str());
694+ LogMessage(Debug_Verbose, _T("Going to execute %s"), (const char *)executable.c_str());
695
696 m_pid = wxExecute(executable + _T(" -v"), wxEXEC_ASYNC, m_pProcess);
697 if (!m_pid)
698@@ -460,7 +460,7 @@
699
700 int CSftpControlSocket::ConnectParseResponse(bool successful, const wxString& reply)
701 {
702- LogMessage(Debug_Verbose, _T("CSftpControlSocket::ConnectParseResponse(%s)"), reply.c_str());
703+ LogMessage(Debug_Verbose, _T("CSftpControlSocket::ConnectParseResponse(%s)"), (const char *)reply.c_str());
704
705 if (!successful)
706 {
707@@ -556,7 +556,7 @@
708 }
709
710 wxString cmd = wxString::Format(_T("proxy %d \"%s\" %d"), type,
711- m_pEngine->GetOptions()->GetOption(OPTION_PROXY_HOST).c_str(),
712+ (const char *)m_pEngine->GetOptions()->GetOption(OPTION_PROXY_HOST).c_str(),
713 m_pEngine->GetOptions()->GetOptionVal(OPTION_PROXY_PORT));
714 wxString user = m_pEngine->GetOptions()->GetOption(OPTION_PROXY_USER);
715 if (user != _T(""))
716@@ -577,7 +577,7 @@
717 res = Send(_T("keyfile \"") + pData->pKeyFiles->GetNextToken() + _T("\""));
718 break;
719 case connect_open:
720- res = Send(wxString::Format(_T("open \"%s@%s\" %d"), m_pCurrentServer->GetUser().c_str(), m_pCurrentServer->GetHost().c_str(), m_pCurrentServer->GetPort()));
721+ res = Send(wxString::Format(_T("open \"%s@%s\" %d"), (const char *)m_pCurrentServer->GetUser().c_str(), (const char *)m_pCurrentServer->GetHost().c_str(), (const char *)m_pCurrentServer->GetPort()));
722 break;
723 default:
724 LogMessage(__TFILE__, __LINE__, this, Debug_Warning, _T("Unknown op state: %d"), pData->opState);
725@@ -989,7 +989,7 @@
726
727 int CSftpControlSocket::ListParseResponse(bool successful, const wxString& reply)
728 {
729- LogMessage(Debug_Verbose, _T("CSftpControlSocket::ListParseResponse(%s)"), reply.c_str());
730+ LogMessage(Debug_Verbose, _T("CSftpControlSocket::ListParseResponse(%s)"), (const char *)reply.c_str());
731
732 if (!m_pCurOpData)
733 {
734@@ -1631,11 +1631,11 @@
735 if (download)
736 {
737 wxString filename = remotePath.FormatFilename(remoteFile);
738- LogMessage(Status, _("Starting download of %s"), filename.c_str());
739+ LogMessage(Status, _("Starting download of %s"), (const char *)filename.c_str());
740 }
741 else
742 {
743- LogMessage(Status, _("Starting upload of %s"), localFile.c_str());
744+ LogMessage(Status, _("Starting upload of %s"), (const char *)localFile.c_str());
745 }
746 if (m_pCurOpData)
747 {
748@@ -2045,7 +2045,7 @@
749 */
750
751 if (!m_pCurOpData)
752- LogMessage(Status, _("Creating directory '%s'..."), path.GetPath().c_str());
753+ LogMessage(Status, _("Creating directory '%s'..."), (const char *)path.GetPath().c_str());
754
755 CMkdirOpData *pData = new CMkdirOpData;
756 pData->path = path;
757@@ -2308,7 +2308,7 @@
758 wxString filename = pData->path.FormatFilename(file);
759 if (filename == _T(""))
760 {
761- LogMessage(::Error, _("Filename cannot be constructed for directory %s and filename %s"), pData->path.GetPath().c_str(), file.c_str());
762+ LogMessage(::Error, _("Filename cannot be constructed for directory %s and filename %s"), (const char *)pData->path.GetPath().c_str(), (const char *)file.c_str());
763 return FZ_REPLY_ERROR;
764 }
765
766@@ -2353,7 +2353,7 @@
767
768 if (!fullPath.AddSegment(subDir))
769 {
770- LogMessage(::Error, _("Path cannot be constructed for directory %s and subdir %s"), path.GetPath().c_str(), subDir.c_str());
771+ LogMessage(::Error, _("Path cannot be constructed for directory %s and subdir %s"), (const char *)path.GetPath().c_str(), (const char *)subDir.c_str());
772 return FZ_REPLY_ERROR;
773 }
774 }
775@@ -2433,7 +2433,7 @@
776 return FZ_REPLY_ERROR;
777 }
778
779- LogMessage(Status, _("Set permissions of '%s' to '%s'"), command.GetPath().FormatFilename(command.GetFile()).c_str(), command.GetPermission().c_str());
780+ LogMessage(Status, _("Set permissions of '%s' to '%s'"), (const char *)command.GetPath().FormatFilename(command.GetFile()).c_str(), (const char *)command.GetPermission().c_str());
781
782 CSftpChmodOpData *pData = new CSftpChmodOpData(command);
783 pData->opState = chmod_chmod;
784@@ -2555,7 +2555,7 @@
785 return FZ_REPLY_ERROR;
786 }
787
788- LogMessage(Status, _("Renaming '%s' to '%s'"), command.GetFromPath().FormatFilename(command.GetFromFile()).c_str(), command.GetToPath().FormatFilename(command.GetToFile()).c_str());
789+ LogMessage(Status, _("Renaming '%s' to '%s'"), (const char *)command.GetFromPath().FormatFilename(command.GetFromFile()).c_str(), (const char *)command.GetToPath().FormatFilename(command.GetToFile()).c_str());
790
791 CSftpRenameOpData *pData = new CSftpRenameOpData(command);
792 pData->opState = rename_rename;
793diff -ur filezilla-3.7.3/src/engine/sizeformatting_base.cpp filezilla-3.7.3.wx3/src/engine/sizeformatting_base.cpp
794--- filezilla-3.7.3/src/engine/sizeformatting_base.cpp 2010-09-14 05:30:20.000000000 +0200
795+++ filezilla-3.7.3.wx3/src/engine/sizeformatting_base.cpp 2014-01-18 21:25:31.448663415 +0100
796@@ -1,6 +1,7 @@
797 #include <filezilla.h>
798 #include "sizeformatting_base.h"
799 #include "optionsbase.h"
800+#include "logging_private.h"
801 #ifndef __WXMSW__
802 #include <langinfo.h>
803 #endif
804diff -ur filezilla-3.7.3/src/engine/socket.cpp filezilla-3.7.3.wx3/src/engine/socket.cpp
805--- filezilla-3.7.3/src/engine/socket.cpp 2013-06-10 20:45:04.000000000 +0200
806+++ filezilla-3.7.3.wx3/src/engine/socket.cpp 2014-01-18 21:26:32.505329640 +0100
807@@ -1,4 +1,5 @@
808 #include <wx/defs.h>
809+#include <wx/intl.h>
810 #ifdef __WXMSW__
811 // MinGW needs this for getaddrinfo
812 #if defined(_WIN32_WINNT)
813@@ -1273,7 +1274,7 @@
814 }
815 }
816
817-#define ERRORDECL(c, desc) { c, _T(#c), wxTRANSLATE(desc) },
818+#define ERRORDECL(c, desc) { c, _T(#c), (const wxChar*)wxTRANSLATE(desc) },
819
820 struct Error_table
821 {
822diff -ur filezilla-3.7.3/src/engine/string_coalescer.cpp filezilla-3.7.3.wx3/src/engine/string_coalescer.cpp
823--- filezilla-3.7.3/src/engine/string_coalescer.cpp 2012-10-06 05:30:12.000000000 +0200
824+++ filezilla-3.7.3.wx3/src/engine/string_coalescer.cpp 2014-01-18 21:28:24.208662165 +0100
825@@ -66,7 +66,8 @@
826 {
827 // wxString is CoW, yet it doesn't even do this fast pointer
828 // comparison in it's less and/or equal operator(s).
829- return lhs.c_str() == rhs.c_str() || lhs == rhs;
830+ return lhs == rhs;
831+// return lhs.c_str() == rhs.c_str() || lhs == rhs;
832 }
833 };
834
835diff -ur filezilla-3.7.3/src/engine/tlssocket.cpp filezilla-3.7.3.wx3/src/engine/tlssocket.cpp
836--- filezilla-3.7.3/src/engine/tlssocket.cpp 2013-06-01 09:37:58.000000000 +0200
837+++ filezilla-3.7.3.wx3/src/engine/tlssocket.cpp 2014-01-18 21:30:03.031994782 +0100
838@@ -23,7 +23,7 @@
839 return;
840 wxString s(msg, wxConvLocal);
841 s.Trim();
842- pLoggingControlSocket->LogMessage(Debug_Debug, _T("tls: %d %s"), level, s.c_str());
843+ pLoggingControlSocket->LogMessage(Debug_Debug, _T("tls: %d %s"), level, (const char *)s.c_str());
844 }
845 #endif
846
847@@ -207,16 +207,16 @@
848 wxString str(error);
849 #endif
850 if (function.IsEmpty())
851- m_pOwner->LogMessage(::Error, _T("GnuTLS error %d: %s"), code, str.c_str());
852+ m_pOwner->LogMessage(::Error, _T("GnuTLS error %d: %s"), code, (const char *)str.c_str());
853 else
854- m_pOwner->LogMessage(::Error, _T("GnuTLS error %d in %s: %s"), code, function.c_str(), str.c_str());
855+ m_pOwner->LogMessage(::Error, _T("GnuTLS error %d in %s: %s"), code, (const char *)function.c_str(), (const char *)str.c_str());
856 }
857 else
858 {
859 if (function.IsEmpty())
860 m_pOwner->LogMessage(::Error, _T("GnuTLS error %d"), code);
861 else
862- m_pOwner->LogMessage(::Error, _T("GnuTLS error %d in %s"), code, function.c_str());
863+ m_pOwner->LogMessage(::Error, _T("GnuTLS error %d in %s"), code, (const char *)function.c_str());
864 }
865 }
866
867@@ -231,7 +231,7 @@
868 #else
869 wxString str(alert);
870 #endif
871- m_pOwner->LogMessage(::Debug_Warning, _T("GnuTLS alert %d: %s"), last_alert, str.c_str());
872+ m_pOwner->LogMessage(::Debug_Warning, _T("GnuTLS alert %d: %s"), last_alert, (const char *)str.c_str());
873 }
874 else
875 m_pOwner->LogMessage(::Debug_Warning, _T("GnuTLS alert %d"), last_alert);
876@@ -535,7 +535,7 @@
877 const wxString cipherName = GetCipherName();
878 const wxString macName = GetMacName();
879
880- m_pOwner->LogMessage(Debug_Info, _T("Protocol: %s, Key exchange: %s, Cipher: %s, MAC: %s"), protocol.c_str(), keyExchange.c_str(), cipherName.c_str(), macName.c_str());
881+ m_pOwner->LogMessage(Debug_Info, _T("Protocol: %s, Key exchange: %s, Cipher: %s, MAC: %s"), (const char *)protocol.c_str(), (const char *)keyExchange.c_str(), (const char *)cipherName.c_str(), (const char *)macName.c_str());
882
883 res = VerifyCertificate();
884 if (res != FZ_REPLY_OK)
885@@ -1235,7 +1235,7 @@
886 if (priority.IsEmpty())
887 priority = wxString::FromUTF8(ciphers);
888
889- wxString list = wxString::Format(_T("Ciphers for %s:\n"), priority.c_str());
890+ wxString list = wxString::Format(_T("Ciphers for %s:\n"), (const char *)priority.c_str());
891
892 #if GNUTLS_VERSION_NUMBER >= 0x030009
893 gnutls_priority_t pcache;
894@@ -1243,7 +1243,7 @@
895 int ret = gnutls_priority_init(&pcache, priority.mb_str(), &err);
896 if (ret < 0)
897 {
898- list += wxString::Format(_T("gnutls_priority_init failed with code %d: %s"), ret, wxString::FromUTF8(err ? err : "").c_str());
899+ list += wxString::Format(_T("gnutls_priority_init failed with code %d: %s"), ret, (const char *)wxString::FromUTF8(err ? err : "").c_str());
900 return list;
901 }
902 else
903@@ -1265,10 +1265,10 @@
904 {
905 list += wxString::Format(
906 _T("%-50s 0x%02x, 0x%02x %s\n"),
907- wxString::FromUTF8(name).c_str(),
908+ (const char *)wxString::FromUTF8(name).c_str(),
909 (unsigned char)id[0],
910 (unsigned char)id[1],
911- wxString::FromUTF8(gnutls_protocol_get_name(version)).c_str());
912+ (const char *)wxString::FromUTF8(gnutls_protocol_get_name(version)).c_str());
913 }
914 }
915 }
916diff -ur filezilla-3.7.3/src/engine/transfersocket.cpp filezilla-3.7.3.wx3/src/engine/transfersocket.cpp
917--- filezilla-3.7.3/src/engine/transfersocket.cpp 2013-06-10 20:45:04.000000000 +0200
918+++ filezilla-3.7.3.wx3/src/engine/transfersocket.cpp 2014-01-18 21:31:02.895327683 +0100
919@@ -98,14 +98,14 @@
920 delete m_pSocketServer;
921 m_pSocketServer = 0;
922
923- m_pControlSocket->LogMessage(::Debug_Warning, _T("GetLocalPort failed: %s"), CSocket::GetErrorDescription(error).c_str());
924+ m_pControlSocket->LogMessage(::Debug_Warning, _T("GetLocalPort failed: %s"), (const char *)CSocket::GetErrorDescription(error).c_str());
925 return _T("");
926 }
927
928 wxString portArguments;
929 if (m_pSocketServer->GetAddressFamily() == CSocket::ipv6)
930 {
931- portArguments = wxString::Format(_T("|2|%s|%d|"), ip.c_str(), port);
932+ portArguments = wxString::Format(_T("|2|%s|%d|"), (const char *)ip.c_str(), port);
933 }
934 else
935 {
936@@ -128,7 +128,7 @@
937 const int error = event.GetError();
938 if (error)
939 {
940- m_pControlSocket->LogMessage(::Error, _("Proxy handshake failed: %s"), CSocket::GetErrorDescription(error).c_str());
941+ m_pControlSocket->LogMessage(::Error, _("Proxy handshake failed: %s"), (const char *)CSocket::GetErrorDescription(error).c_str());
942 TransferEnd(failure);
943 }
944 else
945@@ -142,7 +142,7 @@
946 case CSocketEvent::close:
947 {
948 const int error = event.GetError();
949- m_pControlSocket->LogMessage(::Error, _("Proxy handshake failed: %s"), CSocket::GetErrorDescription(error).c_str());
950+ m_pControlSocket->LogMessage(::Error, _("Proxy handshake failed: %s"), (const char *)CSocket::GetErrorDescription(error).c_str());
951 TransferEnd(failure);
952 }
953 return;
954@@ -169,7 +169,7 @@
955 {
956 if (!m_transferEndReason)
957 {
958- m_pControlSocket->LogMessage(::Error, _("The data connection could not be established: %s"), CSocket::GetErrorDescription(event.GetError()).c_str());
959+ m_pControlSocket->LogMessage(::Error, _("The data connection could not be established: %s"), (const char *)CSocket::GetErrorDescription(event.GetError()).c_str());
960 TransferEnd(transfer_failure);
961 }
962 }
963@@ -212,7 +212,7 @@
964 m_pControlSocket->LogMessage(::Debug_Verbose, _T("No pending connection"));
965 else
966 {
967- m_pControlSocket->LogMessage(::Status, _("Could not accept connection: %s"), CSocket::GetErrorDescription(error).c_str());
968+ m_pControlSocket->LogMessage(::Status, _("Could not accept connection: %s"), (const char *)CSocket::GetErrorDescription(error).c_str());
969 TransferEnd(transfer_failure);
970 }
971 return;
972@@ -284,7 +284,7 @@
973 delete [] pBuffer;
974 if (error != EAGAIN)
975 {
976- m_pControlSocket->LogMessage(::Error, _T("Could not read from transfer socket: %s"), CSocket::GetErrorDescription(error).c_str());
977+ m_pControlSocket->LogMessage(::Error, _T("Could not read from transfer socket: %s"), (const char *)CSocket::GetErrorDescription(error).c_str());
978 TransferEnd(transfer_failure);
979 }
980 else if (m_onCloseCalled && !m_pBackend->IsWaiting(CRateLimiter::inbound))
981@@ -330,7 +330,7 @@
982 {
983 if (error != EAGAIN)
984 {
985- m_pControlSocket->LogMessage(::Error, _T("Could not read from transfer socket: %s"), CSocket::GetErrorDescription(error).c_str());
986+ m_pControlSocket->LogMessage(::Error, _T("Could not read from transfer socket: %s"), (const char *)CSocket::GetErrorDescription(error).c_str());
987 TransferEnd(transfer_failure);
988 }
989 else if (m_onCloseCalled && !m_pBackend->IsWaiting(CRateLimiter::inbound))
990@@ -372,7 +372,7 @@
991 {
992 if (error != EAGAIN)
993 {
994- m_pControlSocket->LogMessage(::Error, _T("Could not read from transfer socket: %s"), CSocket::GetErrorDescription(error).c_str());
995+ m_pControlSocket->LogMessage(::Error, _T("Could not read from transfer socket: %s"), (const char *)CSocket::GetErrorDescription(error).c_str());
996 TransferEnd(transfer_failure);
997 }
998 else if (m_onCloseCalled && !m_pBackend->IsWaiting(CRateLimiter::inbound))
999@@ -467,7 +467,7 @@
1000 }
1001 else
1002 {
1003- m_pControlSocket->LogMessage(Error, _T("Could not write to transfer socket: %s"), CSocket::GetErrorDescription(error).c_str());
1004+ m_pControlSocket->LogMessage(Error, _T("Could not write to transfer socket: %s"), (const char *)CSocket::GetErrorDescription(error).c_str());
1005 TransferEnd(transfer_failure);
1006 }
1007 }
1008@@ -506,7 +506,7 @@
1009
1010 if (error)
1011 {
1012- m_pControlSocket->LogMessage(::Error, _("Transfer connection interrupted: %s"), CSocket::GetErrorDescription(error).c_str());
1013+ m_pControlSocket->LogMessage(::Error, _("Transfer connection interrupted: %s"), (const char *)CSocket::GetErrorDescription(error).c_str());
1014 TransferEnd(transfer_failure);
1015 return;
1016 }
1017@@ -530,7 +530,7 @@
1018 }
1019 else if (numread < 0 && error != EAGAIN)
1020 {
1021- m_pControlSocket->LogMessage(::Error, _("Transfer connection interrupted: %s"), CSocket::GetErrorDescription(error).c_str());
1022+ m_pControlSocket->LogMessage(::Error, _("Transfer connection interrupted: %s"), (const char *)CSocket::GetErrorDescription(error).c_str());
1023 TransferEnd(transfer_failure);
1024 return;
1025 }
1026@@ -647,7 +647,7 @@
1027 int res = pServer->Listen(m_pControlSocket->m_pSocket->GetAddressFamily(), port);
1028 if (res)
1029 {
1030- m_pControlSocket->LogMessage(::Debug_Verbose, _T("Could not listen on port %d: %s"), port, CSocket::GetErrorDescription(res).c_str());
1031+ m_pControlSocket->LogMessage(::Debug_Verbose, _T("Could not listen on port %d: %s"), port, (const char *)CSocket::GetErrorDescription(res).c_str());
1032 delete pServer;
1033 return 0;
1034 }
1035@@ -717,7 +717,7 @@
1036 {
1037 wxString error = pData->pIOThread->GetError();
1038 if (error != _T(""))
1039- m_pControlSocket->LogMessage(::Error, _("Can't write data to file: %s"), error.c_str());
1040+ m_pControlSocket->LogMessage(::Error, _("Can't write data to file: %s"), (const char *)error.c_str());
1041 else
1042 m_pControlSocket->LogMessage(::Error, _("Can't write data to file."));
1043 TransferEnd(transfer_failure_critical);
1044@@ -791,7 +791,7 @@
1045 {
1046 wxString error = pData->pIOThread->GetError();
1047 if (error != _T(""))
1048- m_pControlSocket->LogMessage(::Error, _("Can't write data to file: %s"), error.c_str());
1049+ m_pControlSocket->LogMessage(::Error, _("Can't write data to file: %s"), (const char *)error.c_str());
1050 else
1051 m_pControlSocket->LogMessage(::Error, _("Can't write data to file."));
1052 TransferEnd(transfer_failure_critical);
This page took 0.26615 seconds and 4 git commands to generate.