forked from mirrors/0ad
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:
@@ -71,7 +71,7 @@ JSBool writeConsole( JSContext* context, JSObject* globalObject, unsigned int ar
|
||||
{
|
||||
assert( argc >= 1 );
|
||||
CStr output = g_ScriptingHost.ValueToString( argv[0] );
|
||||
g_Console->InsertMessage( L"%S", (const char*)output );
|
||||
g_Console->InsertMessage( L"%hs", (const char*)output );
|
||||
return( JS_TRUE );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user