summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-05-20 15:57:57 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-05-20 15:57:57 +0300
commitaf4c6d82d1e4dfa9aa60aeabed408486a3979a3e (patch)
tree753da979b8c9ac1c63c330eb8883b5b5b89360d3 /plugins/TabSRMM
parent5d0121f526c8dde41fb87c15a1e2556c8bcb62ba (diff)
fix for C++ runtime locale settings
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/chat_tools.cpp1
-rw-r--r--plugins/TabSRMM/src/muchighlight.cpp1
2 files changed, 0 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/chat_tools.cpp b/plugins/TabSRMM/src/chat_tools.cpp
index b3d2044f9c..a10947d45f 100644
--- a/plugins/TabSRMM/src/chat_tools.cpp
+++ b/plugins/TabSRMM/src/chat_tools.cpp
@@ -366,7 +366,6 @@ wchar_t* my_strstri(const wchar_t* s1, const wchar_t* s2)
{
int i, j, k;
- _wsetlocale(LC_ALL, L"");
for (i = 0; s1[i]; i++)
for (j = i, k = 0; towlower(s1[j]) == towlower(s2[k]); j++, k++)
if (!s2[k + 1])
diff --git a/plugins/TabSRMM/src/muchighlight.cpp b/plugins/TabSRMM/src/muchighlight.cpp
index 57f4df857e..c9d6351bf3 100644
--- a/plugins/TabSRMM/src/muchighlight.cpp
+++ b/plugins/TabSRMM/src/muchighlight.cpp
@@ -51,7 +51,6 @@ void CMUCHighlight::init()
if (0 == db_get_ws(0, CHAT_MODULE, "HighlightWords", &dbv)) {
m_TextPatternString = dbv.pwszVal;
- _wsetlocale(LC_ALL, L"");
wcslwr(m_TextPatternString);
}