If server support UTF8 by Auto or Force, this value will keep true, but in DoClose(), it will reset to false.
After that, next connect won't call constructor again, so this value will always be false.
We should change it to true in Connect() to avoid this bug.
Code: Select all
--- FtpControlSocket.old.cpp Thu May 18 22:31:56 2006
+++ FtpControlSocket.cpp Thu May 18 22:30:06 2006
@@ -205,6 +205,8 @@
m_bAnnouncesUTF8 = false;
if (server.nUTF8 == 2)
m_bUTF8 = false;
+ else
+ m_bUTF8 = true;
// Some sanity checks
if (m_pOwner->IsConnected())