summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-06-29 19:07:27 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-06-29 19:07:27 +0000
commitcadd3f86302d30d6d6a2e4af63a7a50f0dd1f1cb (patch)
treefa0a5e157b102d9046271569a3d97c5dadb4faee
parent25f639726e86826fac199133caf9f69cd97ebb76 (diff)
Twitter: attempt fix cyrilic tweets sending
git-svn-id: http://svn.miranda-ng.org/main/trunk@14439 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/Twitter/src/proto.cpp4
1 files 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<char*>(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;
}