Disable legacy encoding mode when modpython is loaded.

Python is not happy when using non-unicode text as str.

Fix #1229
This commit is contained in:
Alexey Sokolov committed 2016-01-09 14:18:24 +00:00
1 parent 1e1fadbc2b
commit 4fe4a45dd6
8 files changed
+37 -4

No files matched your search

+1 -1
View File
@@ -384,7 +384,7 @@ void CClient::AcceptLogin(CUser& User) {
SetTimeout(CIRCNetwork::NO_TRAFFIC_TIMEOUT, TMO_READ);
SetSockName("USR::" + m_pUser->GetUserName());
SetEncoding(m_pUser->GetClientEncoding());
SetEncoding(CZNC::Get().FixupEncoding(m_pUser->GetClientEncoding()));
if (!m_sNetwork.empty()) {
m_pNetwork = m_pUser->FindNetwork(m_sNetwork);