From cadd3f86302d30d6d6a2e4af63a7a50f0dd1f1cb Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Mon, 29 Jun 2015 19:07:27 +0000 Subject: Twitter: attempt fix cyrilic tweets sending git-svn-id: http://svn.miranda-ng.org/main/trunk@14439 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/src/proto.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/Twitter/src/proto.cpp b/protocols/Twitter/src/proto.cpp index d3c8fab685..d94037fb64 100644 --- a/protocols/Twitter/src/proto.cpp +++ b/protocols/Twitter/src/proto.cpp @@ -421,9 +421,9 @@ void TwitterProto::SendTweetWorker(void *p) return; char *text = static_cast(p); - if (mir_strlen(text) > 140) { // looks like the chat max outgoing msg thing doesn't work, so i'll do it here. + if (mir_strlen(mir_utf8decodeA(text)) > 140) { // looks like the chat max outgoing msg thing doesn't work, so i'll do it here. TCHAR errorPopup[280]; - mir_sntprintf(errorPopup, _countof(errorPopup), _T("Don't be crazy! Everyone knows the max tweet size is 140, and you're trying to fit %d chars in there?"), mir_strlen(text)); + mir_sntprintf(errorPopup, _countof(errorPopup), TranslateT("Don't be crazy! Everyone knows the max tweet size is 140, and you're trying to fit %d chars in there?"), mir_strlen(text)); ShowPopup(errorPopup, 1); return; } -- cgit v1.2.3