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
+2 -2
View File
@@ -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" );