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:
olsner
2004-07-11 22:30:08 +00:00
parent 14aa03f3b0
commit ca5b760310
5 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -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 );
}