File aMule-fix_ambiguous_char2unicode_to_wxstring.patch of Package aMule-AdunanzA
--- src/ClientCreditsList.cpp.orig 2011-03-11 01:10:49.000000000 +0100
+++ src/ClientCreditsList.cpp 2011-03-11 01:12:23.000000000 +0100
@@ -280,7 +280,7 @@
} catch(const CryptoPP::Exception& e) {
AddDebugLogLineM(true, logCredits,
wxString(wxT("Failed to create new RSA keypair: ")) +
- char2unicode(e.what()));
+ wxString(char2unicode(e.what())));
wxASSERT(false);
return false;
}
@@ -331,7 +331,7 @@
AddDebugLogLineM(true, logCredits,
wxString(wxT("Error while initializing encryption keys: ")) +
- char2unicode(e.what()));
+ wxString(char2unicode(e.what())));
}
}
@@ -375,7 +375,7 @@
return asink.TotalPutLength();
} catch (const CryptoPP::Exception& e) {
- AddDebugLogLineM(true, logCredits, wxString(wxT("Error while creating signature: ")) + char2unicode(e.what()));
+ AddDebugLogLineM(true, logCredits, wxString(wxT("Error while creating signature: ")) + wxString(char2unicode(e.what())));
wxASSERT(false);
return 0;
@@ -436,7 +436,7 @@
bResult = pubkey.VerifyMessage(abyBuffer, m_nMyPublicKeyLen+4+nChIpSize, pachSignature, nInputSize);
} catch (const CryptoPP::Exception& e) {
- AddDebugLogLineM(true, logCredits, wxString(wxT("Error while verifying identity: ")) + char2unicode(e.what()));
+ AddDebugLogLineM(true, logCredits, wxString(wxT("Error while verifying identity: ")) + wxString(char2unicode(e.what())));
bResult = false;
}