X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=ChazLog.m;fp=ChazLog.m;h=2f8eaa6cde97fc05c19e2fb46c4c8fe863602482;hb=cd317fe26f0deee1697ea5454fcb74135e507e61;hp=0f4d0371d6fcf18e93aaa02667e7ef8f980f723f;hpb=1654f21c723dadf0d88b0e92f882a6c9a69bf08e;p=chaz%2Fthecheat diff --git a/ChazLog.m b/ChazLog.m index 0f4d037..2f8eaa6 100644 --- a/ChazLog.m +++ b/ChazLog.m @@ -49,7 +49,7 @@ void ChazDebugSetup() FILE *file; // look for debug file - file = fopen( [filepath lossyCString], "r+" ); + file = fopen( [filepath cStringUsingEncoding:NSUTF8StringEncoding], "r+" ); if ( !file ) { // there is no debug file or we don't have permissions @@ -58,7 +58,7 @@ void ChazDebugSetup() fclose( file ); - _gDebugFile = fopen( [filepath lossyCString], "w" ); + _gDebugFile = fopen( [filepath cStringUsingEncoding:NSUTF8StringEncoding], "w" ); ChazDebug( @"Debug log found (obviously). Entering debug mode." ); } @@ -150,7 +150,7 @@ void _ChazPrint( FILE *output, NSString *format, va_list args ) fprintf( output, "[%s] %s\n", [[[NSDate date] descriptionWithCalendarFormat:@"%Y-%m-%d %H:%M:%S.%F" timeZone:nil - locale:nil] lossyCString], [string lossyCString] ); + locale:nil] cStringUsingEncoding:NSUTF8StringEncoding], [string cStringUsingEncoding:NSUTF8StringEncoding] ); fflush( output ); [string release];