From 7b4388cfbe8d7aa873e8aa6d3717ca301eeb59a3 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 12 Oct 2011 16:44:03 +0300 Subject: fixed end of line (will cause problems on non text data) --- messages.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 messages.cpp (limited to 'messages.cpp') diff --git a/messages.cpp b/messages.cpp old mode 100644 new mode 100755 index 384f44b..2d48052 --- a/messages.cpp +++ b/messages.cpp @@ -593,6 +593,8 @@ int SendMsgSvc_func(HANDLE hContact, char *msg, DWORD flags) str.append(tmp); mir_free(tmp); } +/* for(std::wstring::size_type i = str.find(_T("\r\n")); i != std::wstring::npos; i = str.find(_T("\r\n"), i+1)) + str.replace(i, 2, _T("\n")); */ string out; DWORD code; wstring cmd; @@ -612,7 +614,7 @@ int SendMsgSvc_func(HANDLE hContact, char *msg, DWORD flags) cmd += _T("--comment \"\" --no-version "); if(DBGetContactSettingByte(hContact, szGPGModuleName, "bAlwaysTrust", 0)) cmd += _T("--trust-model always "); - cmd += _T("--batch --yes -e -a -r "); + cmd += _T("--batch --yes -e -a -t -r "); TCHAR *tmp2 = mir_a2t(tmp); mir_free(tmp); cmd += tmp2; -- cgit v1.2.3