summaryrefslogtreecommitdiff
path: root/plugins/NewXstatusNotify/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewXstatusNotify/src/utils.cpp')
-rw-r--r--plugins/NewXstatusNotify/src/utils.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/NewXstatusNotify/src/utils.cpp b/plugins/NewXstatusNotify/src/utils.cpp
index 951a2dd551..7dd1e9dc58 100644
--- a/plugins/NewXstatusNotify/src/utils.cpp
+++ b/plugins/NewXstatusNotify/src/utils.cpp
@@ -87,11 +87,7 @@ void LogToFile(TCHAR *stzText)
{
FILE *fp = _tfopen(opt.LogFilePath, _T("a+b, ccs=UTF-8"));
if (fp) {
- char *encodedText = mir_utf8encodeT(stzText);
- if (encodedText) {
- fprintf(fp, encodedText);
- mir_free(encodedText);
- }
+ fprintf(fp, T2Utf(stzText));
fclose(fp);
}
}