mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-24 09:13:42 +00:00
Linux/GCC: Changed a whole bunch of wide character format strings... In VC++,
the wide printf functions default %s to be a wide string. GCC defaults it to a narrow string. Everything I could find uses %ls or %hs as appropriate now. This was SVN commit r715.
This commit is contained in:
@@ -318,10 +318,10 @@ void ScriptingHost::ErrorReporter(JSContext * context, const char * message, JSE
|
||||
|
||||
if (g_Console)
|
||||
{
|
||||
g_Console->InsertMessage( L"%S ( %d )", report->filename, report->lineno );
|
||||
g_Console->InsertMessage( L"%hs ( %d )", report->filename, report->lineno );
|
||||
if( message )
|
||||
{
|
||||
g_Console->InsertMessage( L"%S", message );
|
||||
g_Console->InsertMessage( L"%hs", message );
|
||||
}
|
||||
else
|
||||
g_Console->InsertMessage( L"No error message available" );
|
||||
|
||||
Reference in New Issue
Block a user