From d9ecab2dcd4ca334e1923d8c9beadeb3e231a4b8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 18 Dec 2014 15:45:33 +0000 Subject: various calls of setlocale removed git-svn-id: http://svn.miranda-ng.org/main/trunk@11513 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Spamotron/src/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Spamotron/src') diff --git a/plugins/Spamotron/src/utils.cpp b/plugins/Spamotron/src/utils.cpp index 7d70522e45..345f3316ce 100644 --- a/plugins/Spamotron/src/utils.cpp +++ b/plugins/Spamotron/src/utils.cpp @@ -6,7 +6,7 @@ TCHAR *_tcstolower(TCHAR *dst) { if (dst == NULL) return NULL; - setlocale(LC_ALL, ""); + SIZE_T dst_len = _tcslen(dst); for (SIZE_T i = 0; i < dst_len; i ++) dst[i] = _totlower(dst[i]); @@ -17,7 +17,7 @@ TCHAR *_tcstoupper(TCHAR *dst) { if (dst == NULL) return NULL; - setlocale(LC_ALL, ""); + SIZE_T dst_len = _tcslen(dst); for (SIZE_T i = 0; i < dst_len; i ++) dst[i] = _totupper(dst[i]); -- cgit v1.2.3