andrep / ilcrashreporter-ng

Automatically exported from code.google.com/p/ilcrashreporter-ng
1 stars 0 forks source link

Use UTF-8 encoding #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
11/01/17 15:33:36   [0x0-0x149b49a].dk.infinite-loop.samplecrasher  2011-01-17 
15:33:36.098 CrashReporter[25370:903] Could not load crashlog: 
/Users/fujiwara/Library/Logs/CrashReporter/Sample 
Crasher_2011-01-17-153333_iMac.crash

CrashReporter.app could not read the log file which contains non-ASCII 
characters.

In the method -gatherConsoleLogForApplication:(NSString*)appName 
withProcessID:(int)processID
and the method -rawCrashLog:(NSString*)appName
in CrashReporterController.m:

[NSString stringWithContentsOfFile:path];

It should be replace with:

[NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding 
error:NULL];

Original issue reported on code.google.com by fujis...@gmail.com on 17 Jan 2011 at 6:52