feat: begin to use QStrings for strings
feat: get windows building with the UNICODE forced by using Qt refactor: remove ARCHString use QString to convert to / from utf8 build: (arch) link to common build: (base) link to arch build: (io) Link to common build: (client) link to common build: (server) link to common fix: Append to log file instead of creating a new one each log line refactor: Trim cipher description for neater log output fix: Update log messages to use wide string format for Unicode support fix: Correct event creation to use wide string for Unicode compatibility refactor: Use QStringDecoder for UTF-8 handling on Windows Daemon child process fix: Use correct wide type for Win32 consts
This commit is contained in:
@ -9,9 +9,10 @@
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <Windows.h>
|
||||
#include <string>
|
||||
|
||||
void MSWindowsDebugOutputter::open(const char *title)
|
||||
#include <QString>
|
||||
|
||||
void MSWindowsDebugOutputter::open(const QString &title)
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
@ -26,9 +27,10 @@ void MSWindowsDebugOutputter::show(bool showIfEmpty)
|
||||
// do nothing
|
||||
}
|
||||
|
||||
bool MSWindowsDebugOutputter::write(LogLevel level, const char *msg)
|
||||
bool MSWindowsDebugOutputter::write(LogLevel level, const QString &msg)
|
||||
{
|
||||
OutputDebugString((std::string(msg) + "\n").c_str());
|
||||
std::wstring out = msg.toStdWString() + L"\n";
|
||||
OutputDebugString(out.c_str());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user