1
0
forked from mirrors/0ad

Convert debug_printf to take UTF-8 strings instead of wchar_t.

This fixes the problem where passing a non-ASCII string to
debug_printf(L"%hs", s) caused vswprintf_s to fail on Linux (because it
doesn't know what encoding the char* is meant to have). Now debug
messages will remain as UTF-8 until they reach the OS.

Fixes #3021.

This was SVN commit r16332.
This commit is contained in:
Ykkrosh
2015-02-14 01:45:13 +00:00
parent bf4b8bfe9c
commit e06a7b37d8
68 changed files with 232 additions and 229 deletions
+1 -1
View File
@@ -612,7 +612,7 @@ void SetCameraTarget(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), float x, fl
// Useful for testing the crashlog/stack trace code.
int Crash(ScriptInterface::CxPrivate* UNUSED(pCxPrivate))
{
debug_printf(L"Crashing at user's request.\n");
debug_printf("Crashing at user's request.\n");
return *(volatile int*)0;
}