Changeset 2231

Show
Ignore:
Timestamp:
09/08/2008 08:09:06 (3 months ago)
Author:
chris
Message:

Convert console logging output to console encoding on Windows.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • box/trunk/lib/common/Logging.cpp

    r2208 r2231  
    318318        buf << rMessage; 
    319319 
    320         fprintf(target, "%s\n", buf.str().c_str()); 
     320        #ifdef WIN32 
     321                std::string output = buf.str(); 
     322                ConvertUtf8ToConsole(output.c_str(), output); 
     323                fprintf(target, "%s\n", output.c_str()); 
     324        #else 
     325                fprintf(target, "%s\n", buf.str().c_str()); 
     326        #endif 
    321327         
    322328        return true;