Skip to content

Instantly share code, notes, and snippets.

@ptzn
Created December 25, 2009 18:39
Show Gist options
  • Save ptzn/263712 to your computer and use it in GitHub Desktop.
Save ptzn/263712 to your computer and use it in GitHub Desktop.
geektool patch for support utf8
Index: GTLog.m
===================================================================
--- GTLog.m (revision 13)
+++ GTLog.m (working copy)
@@ -905,7 +905,7 @@
newLines = [[ aNotification object ] availableData ];
}
}
- newLinesString = [[ NSString alloc ] initWithData: newLines encoding:NSASCIIStringEncoding ];
+ newLinesString = [[ NSString alloc ] initWithData: newLines encoding:NSUTF8StringEncoding ];
if (! [ newLinesString isEqualTo: @"" ] || [ self type ] == kGTCommandType)
{
if (! [ self hide ] && ! ([ self force ] && [ self type ] == kGTImageType))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment